51 lines
1.0 KiB
Plaintext
51 lines
1.0 KiB
Plaintext
## <module name="dmesg">
|
|
## <summary>Policy for dmesg.</summary>
|
|
|
|
########################################
|
|
## <interface name="dmesg_domtrans">
|
|
## <desc>
|
|
## Execute dmesg in the dmesg domain.
|
|
## </desc>
|
|
## <param name="domain">
|
|
## The type of the process performing this action.
|
|
## </param>
|
|
## </interface>
|
|
#
|
|
interface(`dmesg_domtrans',`
|
|
gen_require(`
|
|
type dmesg_t, dmesg_exec_t;
|
|
class process sigchld;
|
|
class fd use;
|
|
class fifo_file rw_file_perms;
|
|
')
|
|
|
|
corecmd_search_sbin($1)
|
|
domain_auto_trans($1,dmesg_exec_t,dmesg_t)
|
|
|
|
allow $1 dmesg_t:fd use;
|
|
allow dmesg_t $1:fd use;
|
|
allow dmesg_t $1:fifo_file rw_file_perms;
|
|
allow dmesg_t $1:process sigchld;
|
|
')
|
|
|
|
########################################
|
|
## <interface name="dmesg_exec">
|
|
## <desc>
|
|
## Execute dmesg in the caller domain.
|
|
## </desc>
|
|
## <param name="domain">
|
|
## The type of the process performing this action.
|
|
## </param>
|
|
## </interface>
|
|
#
|
|
interface(`dmesg_exec',`
|
|
gen_require(`
|
|
type dmesg_exec_t;
|
|
')
|
|
|
|
corecmd_search_sbin($1)
|
|
can_exec($1,dmesg_exec_t)
|
|
')
|
|
|
|
## </module>
|