new init interfaces for systemd
These are needed by several patches I'm about to send. Description: some new interfaces for init/systemd Author: Russell Coker <russell@coker.com.au> Last-Update: 2017-02-24
This commit is contained in:
parent
7cc502dfe5
commit
35bd01104a
|
@ -1135,6 +1135,24 @@ interface(`init_var_lib_filetrans',`
|
|||
filetrans_pattern($1, init_var_lib_t, $2, $3, $4)
|
||||
')
|
||||
|
||||
######################################
|
||||
## <summary>
|
||||
## Allow search directory in the /run/systemd directory.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`init_search_pid_dirs',`
|
||||
gen_require(`
|
||||
type init_var_run_t;
|
||||
')
|
||||
|
||||
allow $1 init_var_run_t:dir search_dir_perms;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Create files in an init PID directory.
|
||||
|
@ -2259,6 +2277,24 @@ interface(`init_rw_script_tmp_files',`
|
|||
rw_files_pattern($1, initrc_tmp_t, initrc_tmp_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Read and write init script inherited temporary data.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`init_rw_inherited_script_tmp_files',`
|
||||
gen_require(`
|
||||
type initrc_tmp_t;
|
||||
')
|
||||
|
||||
allow $1 initrc_tmp_t:file rw_inherited_file_perms;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Create files in a init script
|
||||
|
|
Loading…
Reference in New Issue