|
Chris PeBenito |
7591e8 |
## <module name="dmesg" layer="admin">
|
|
Chris PeBenito |
c22038 |
## <summary>Policy for dmesg.</summary>
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
########################################
|
|
Chris PeBenito |
c22038 |
## <interface name="dmesg_transition">
|
|
Chris PeBenito |
c22038 |
## <description>
|
|
Chris PeBenito |
c22038 |
## Execute dmesg in the dmesg domain.
|
|
Chris PeBenito |
c22038 |
## </description>
|
|
Chris PeBenito |
c22038 |
## <parameter name="domain">
|
|
Chris PeBenito |
c22038 |
## The type of the process performing this action.
|
|
Chris PeBenito |
c22038 |
## </parameter>
|
|
Chris PeBenito |
c22038 |
## </interface>
|
|
Chris PeBenito |
c22038 |
#
|
|
Chris PeBenito |
c22038 |
define(`dmesg_transition',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
dc67f7 |
allow $1 dmesg_exec_t:file rx_file_perms;
|
|
Chris PeBenito |
0c73cd |
allow $1 dmesg_t:process transition;
|
|
Chris PeBenito |
0c73cd |
type_transition $1 dmesg_exec_t:process dmesg_t;
|
|
Chris PeBenito |
0c73cd |
dontaudit $1 dmesg_t:process { noatsecure siginh rlimitinh };
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
allow $1 dmesg_t:fd use;
|
|
Chris PeBenito |
0c73cd |
allow dmesg_t $1:fd use;
|
|
Chris PeBenito |
0c73cd |
allow dmesg_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
0c73cd |
allow dmesg_t $1:process sigchld;
|
|
Chris PeBenito |
c22038 |
')
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
define(`dmesg_transition_depend',`
|
|
Chris PeBenito |
0c73cd |
type dmesg_t, dmesg_exec_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
dc67f7 |
class file rx_file_perms;
|
|
Chris PeBenito |
0c73cd |
class process { transition noatsecure siginh rlimitinh sigchld };
|
|
Chris PeBenito |
0c73cd |
class fd use;
|
|
Chris PeBenito |
0c73cd |
class fifo_file rw_file_perms;
|
|
Chris PeBenito |
c22038 |
')
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
########################################
|
|
Chris PeBenito |
c22038 |
## <interface name="dmesg_execute">
|
|
Chris PeBenito |
c22038 |
## <description>
|
|
Chris PeBenito |
c22038 |
## Execute dmesg in the caller domain.
|
|
Chris PeBenito |
c22038 |
## </description>
|
|
Chris PeBenito |
c22038 |
## <parameter name="domain">
|
|
Chris PeBenito |
c22038 |
## The type of the process performing this action.
|
|
Chris PeBenito |
c22038 |
## </parameter>
|
|
Chris PeBenito |
c22038 |
## </interface>
|
|
Chris PeBenito |
c22038 |
#
|
|
Chris PeBenito |
c22038 |
define(`dmesg_execute',`
|
|
Chris PeBenito |
0c73cd |
requires_block_template(`$0'_depend)
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
dc67f7 |
can_exec($1,dmesg_exec_t)
|
|
Chris PeBenito |
dc67f7 |
|
|
Chris PeBenito |
c22038 |
')
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
define(`dmesg_execute_depend',`
|
|
Chris PeBenito |
0c73cd |
type dmesg_exec_t;
|
|
Chris PeBenito |
0c73cd |
|
|
Chris PeBenito |
0c73cd |
class file { getattr read execute execute_no_trans };
|
|
Chris PeBenito |
c22038 |
')
|
|
Chris PeBenito |
c22038 |
|
|
Chris PeBenito |
c22038 |
## </module>
|