Oreon-Lime-R2/selinux-policy/selinux-policy-bc228bd/selinux-policy-bc228bd0c249a9e4aa3dcf238c2b1bb138943b07/policy/modules/contrib/fcoe.if

55 lines
1.2 KiB
Text
Raw Permalink Normal View History

## <summary>Fibre Channel over Ethernet utilities.</summary>
#######################################
## <summary>
## Send to fcoemon with a unix dgram socket.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`fcoe_dgram_send_fcoemon',`
gen_require(`
type fcoemon_t, fcoemon_var_run_t;
')
files_search_pids($1)
dgram_send_pattern($1, fcoemon_var_run_t, fcoemon_var_run_t, fcoemon_t)
')
########################################
## <summary>
## All of the rules required to
## administrate an fcoemon environment.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <param name="role">
## <summary>
## Role allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`fcoe_admin',`
gen_require(`
type fcoemon_t, fcoemon_initrc_exec_t, fcoemon_var_run_t;
')
allow $1 fcoemon_t:process { ptrace signal_perms };
ps_process_pattern($1, fcoemon_t)
init_labeled_script_domtrans($1, fcoemon_initrc_exec_t)
domain_system_change_exemption($1)
role_transition $2 fcoemon_initrc_exec_t system_r;
allow $2 system_r;
files_search_pids($1)
admin_pattern($1, fcoemon_var_run_t)
')