Oreon-Lime-R2/selinux-policy/selinux-policy-bc228bd/selinux-policy-bc228bd0c249a9e4aa3dcf238c2b1bb138943b07/policy/modules/admin/dmesg.if

41 lines
732 B
Text
Raw Normal View History

## <summary>Policy for dmesg.</summary>
########################################
## <summary>
## Execute dmesg in the dmesg domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed to transition.
## </summary>
## </param>
#
interface(`dmesg_domtrans',`
gen_require(`
type dmesg_t, dmesg_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, dmesg_exec_t, dmesg_t)
')
########################################
## <summary>
## Execute dmesg in the caller domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`dmesg_exec',`
gen_require(`
type dmesg_exec_t;
')
corecmd_search_bin($1)
can_exec($1, dmesg_exec_t)
')