trunk: add interface to transition to initrc_t on labeled init scripts.

This commit is contained in:
Chris PeBenito 2008-09-18 13:47:43 +00:00
parent cfafe4a7a8
commit 64c5b9975b
2 changed files with 26 additions and 1 deletions

View File

@ -693,6 +693,31 @@ interface(`init_script_file_domtrans',`
domain_auto_trans($1,initrc_exec_t,$2) domain_auto_trans($1,initrc_exec_t,$2)
') ')
########################################
## <summary>
## Transition to the init script domain
## on a specified labeled init script.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <param name="init_script_file">
## <summary>
## Labeled init script file.
## </summary>
## </param>
#
interface(`init_labeled_script_domtrans',`
gen_require(`
type initrc_t;
')
domtrans_pattern($1, $2, initrc_t)
files_search_etc($1)
')
######################################## ########################################
## <summary> ## <summary>
## Start and stop daemon programs directly. ## Start and stop daemon programs directly.

View File

@ -1,5 +1,5 @@
policy_module(init, 1.11.3) policy_module(init, 1.11.4)
gen_require(` gen_require(`
class passwd rootok; class passwd rootok;