Merge branch 'init_ntp_interface' of git://github.com/cgzones/refpolicy
This commit is contained in:
commit
389e3c954f
@ -510,6 +510,39 @@ interface(`init_daemon_pid_file',`
|
||||
files_pid_filetrans(initrc_t, $1, $2, $3)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Mark the file type as a daemon lock file, allowing initrc_t
|
||||
## to create it
|
||||
## </summary>
|
||||
## <param name="filetype">
|
||||
## <summary>
|
||||
## Type to mark as a daemon lock file
|
||||
## </summary>
|
||||
## </param>
|
||||
## <param name="class">
|
||||
## <summary>
|
||||
## Class on which the type is applied
|
||||
## </summary>
|
||||
## </param>
|
||||
## <param name="filename">
|
||||
## <summary>
|
||||
## Filename of the file that the init script creates
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`init_daemon_lock_file',`
|
||||
gen_require(`
|
||||
type initrc_t;
|
||||
')
|
||||
|
||||
files_lock_file($1)
|
||||
files_lock_filetrans(initrc_t, $1, $2, $3)
|
||||
|
||||
allow initrc_t $1:dir manage_dir_perms;
|
||||
allow initrc_t $1:file manage_file_perms;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Mark the file type as a daemon run dir, allowing initrc_t
|
||||
|
Loading…
Reference in New Issue
Block a user