selinux-policy/policy/modules/system/raid.if

50 lines
1.1 KiB
Plaintext
Raw Normal View History

2005-07-15 20:45:26 +00:00
## <summary>RAID array management tools</summary>
########################################
## <summary>
## Execute software raid tools in the mdadm domain.
## </summary>
## <param name="domain">
## <summary>
2005-07-15 20:45:26 +00:00
## The type of the process performing this action.
## </summary>
2005-07-15 20:45:26 +00:00
## </param>
#
interface(`raid_domtrans_mdadm',`
gen_require(`
type mdadm_t, mdadm_exec_t;
')
corecmd_search_sbin($1)
2006-12-12 20:08:08 +00:00
domtrans_pattern($1,mdadm_exec_t,mdadm_t)
2005-07-15 20:45:26 +00:00
')
2005-07-18 18:31:49 +00:00
########################################
## <summary>
## Create, read, write, and delete the mdadm pid files.
## </summary>
## <desc>
## <p>
## Create, read, write, and delete the mdadm pid files.
## </p>
## <p>
## Added for use in the init module.
## </p>
## </desc>
## <param name="domain">
## <summary>
2005-07-18 18:31:49 +00:00
## The type of the process performing this action.
## </summary>
2005-07-18 18:31:49 +00:00
## </param>
#
interface(`raid_manage_mdadm_pid',`
gen_require(`
type mdadm_var_run_t;
')
# FIXME: maybe should have a type_transition. not
# clear what this is doing, from the original
# mdadm policy
2006-12-12 20:08:08 +00:00
allow $1 mdadm_var_run_t:file manage_file_perms;
2005-07-18 18:31:49 +00:00
')