selinux-refpolicy/refpolicy/policy/modules/admin/dmesg.if

51 lines
1.0 KiB
Plaintext
Raw Normal View History

## <module name="dmesg">
2005-05-26 15:50:53 +00:00
## <summary>Policy for dmesg.</summary>
########################################
2005-06-13 17:35:46 +00:00
## <interface name="dmesg_domtrans">
2005-06-23 16:00:05 +00:00
## <desc>
2005-05-26 15:50:53 +00:00
## Execute dmesg in the dmesg domain.
2005-06-23 16:00:05 +00:00
## </desc>
## <param name="domain">
2005-05-26 15:50:53 +00:00
## The type of the process performing this action.
2005-06-23 16:00:05 +00:00
## </param>
2005-05-26 15:50:53 +00:00
## </interface>
#
interface(`dmesg_domtrans',`
2005-06-17 18:27:08 +00:00
gen_require(`
type dmesg_t, dmesg_exec_t;
class process sigchld;
class fd use;
class fifo_file rw_file_perms;
')
2005-06-17 18:27:08 +00:00
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;
2005-05-26 15:50:53 +00:00
')
########################################
2005-06-13 17:35:46 +00:00
## <interface name="dmesg_exec">
2005-06-23 16:00:05 +00:00
## <desc>
2005-05-26 15:50:53 +00:00
## Execute dmesg in the caller domain.
2005-06-23 16:00:05 +00:00
## </desc>
## <param name="domain">
2005-05-26 15:50:53 +00:00
## The type of the process performing this action.
2005-06-23 16:00:05 +00:00
## </param>
2005-05-26 15:50:53 +00:00
## </interface>
#
interface(`dmesg_exec',`
2005-06-17 18:27:08 +00:00
gen_require(`
type dmesg_exec_t;
')
2005-06-17 18:27:08 +00:00
corecmd_search_sbin($1)
2005-06-09 17:21:52 +00:00
can_exec($1,dmesg_exec_t)
2005-05-26 15:50:53 +00:00
')
## </module>