Oreon-Lime-R2/selinux-policy/selinux-policy-d9f4a2b/selinux-policy-d9f4a2bbeb91fd95d0c35a90936efb9ea99d2455/policy/modules/contrib/oracleasm.if

76 lines
1.4 KiB
Text
Raw Permalink Normal View History

## <summary>policy for oracleasm</summary>
########################################
## <summary>
## Transition to oracleasm.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`oracleasm_domtrans',`
gen_require(`
type oracleasm_t, oracleasm_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, oracleasm_exec_t, oracleasm_t)
')
########################################
## <summary>
## Execute oracleasm server in the oracleasm domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`oracleasm_initrc_domtrans',`
gen_require(`
type oracleasm_initrc_exec_t;
')
init_labeled_script_domtrans($1, oracleasm_initrc_exec_t)
')
########################################
## <summary>
## All of the rules required to administrate
## an oracleasm environment
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <param name="role">
## <summary>
## Role allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`oracleasm_admin',`
gen_require(`
type oracleasm_t;
type oracleasm_initrc_exec_t;
')
allow $1 oracleasm_t:process { ptrace signal_perms };
ps_process_pattern($1, oracleasm_t)
oracleasm_initrc_domtrans($1)
domain_system_change_exemption($1)
role_transition $2 oracleasm_initrc_exec_t system_r;
allow $2 system_r;
')