trunk: add interface to transition to initrc_t on labeled init scripts.
This commit is contained in:
parent
cfafe4a7a8
commit
64c5b9975b
@ -693,6 +693,31 @@ interface(`init_script_file_domtrans',`
|
||||
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>
|
||||
## Start and stop daemon programs directly.
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
policy_module(init, 1.11.3)
|
||||
policy_module(init, 1.11.4)
|
||||
|
||||
gen_require(`
|
||||
class passwd rootok;
|
||||
|
Loading…
Reference in New Issue
Block a user