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

40 lines
722 B
Text
Raw Normal View History

## <summary>policy for rshim</summary>
########################################
## <summary>
## Execute rshim_exec_t in the rshim domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`rshim_domtrans',`
gen_require(`
type rshim_t, rshim_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, rshim_exec_t, rshim_t)
')
######################################
## <summary>
## Execute rshim in the caller domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`rshim_exec',`
gen_require(`
type rshim_exec_t;
')
corecmd_search_bin($1)
can_exec($1, rshim_exec_t)
')