## Policy for dmesg.
########################################
##
## Execute dmesg in the dmesg domain.
##
##
##
## Domain allowed to transition.
##
##
#
interface(`dmesg_domtrans',`
gen_require(`
type dmesg_t, dmesg_exec_t;
')
corecmd_search_bin($1)
domtrans_pattern($1, dmesg_exec_t, dmesg_t)
')
########################################
##
## Execute dmesg in the caller domain.
##
##
##
## Domain allowed access.
##
##
##
#
interface(`dmesg_exec',`
gen_require(`
type dmesg_exec_t;
')
corecmd_search_bin($1)
can_exec($1, dmesg_exec_t)
')