2005-06-09 17:56:38 +00:00
|
|
|
## <module name="dmesg" layer="admin">
|
2005-05-26 15:50:53 +00:00
|
|
|
## <summary>Policy for dmesg.</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <interface name="dmesg_transition">
|
|
|
|
## <description>
|
|
|
|
## Execute dmesg in the dmesg domain.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`dmesg_transition',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
2005-06-09 17:21:52 +00:00
|
|
|
allow $1 dmesg_exec_t:file rx_file_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
allow $1 dmesg_t:process transition;
|
|
|
|
type_transition $1 dmesg_exec_t:process dmesg_t;
|
|
|
|
dontaudit $1 dmesg_t:process { noatsecure siginh rlimitinh };
|
|
|
|
|
|
|
|
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
|
|
|
')
|
|
|
|
|
|
|
|
define(`dmesg_transition_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type dmesg_t, dmesg_exec_t;
|
|
|
|
|
2005-06-09 17:21:52 +00:00
|
|
|
class file rx_file_perms;
|
2005-06-03 12:25:14 +00:00
|
|
|
class process { transition noatsecure siginh rlimitinh sigchld };
|
|
|
|
class fd use;
|
|
|
|
class fifo_file rw_file_perms;
|
2005-05-26 15:50:53 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <interface name="dmesg_execute">
|
|
|
|
## <description>
|
|
|
|
## Execute dmesg in the caller domain.
|
|
|
|
## </description>
|
|
|
|
## <parameter name="domain">
|
|
|
|
## The type of the process performing this action.
|
|
|
|
## </parameter>
|
|
|
|
## </interface>
|
|
|
|
#
|
|
|
|
define(`dmesg_execute',`
|
2005-06-03 12:25:14 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
|
|
|
|
2005-06-09 17:21:52 +00:00
|
|
|
can_exec($1,dmesg_exec_t)
|
|
|
|
|
2005-05-26 15:50:53 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
define(`dmesg_execute_depend',`
|
2005-06-03 12:25:14 +00:00
|
|
|
type dmesg_exec_t;
|
|
|
|
|
|
|
|
class file { getattr read execute execute_no_trans };
|
2005-05-26 15:50:53 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
## </module>
|