Chris PeBenito c22038
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito c22038
## <module name="dmesg" layer="keyservices">
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
##	<infoflow type="write" weight="10"/>
Chris PeBenito c22038
## </interface>
Chris PeBenito c22038
#
Chris PeBenito c22038
define(`dmesg_transition',`
Chris PeBenito c22038
requires_block_template(`$0'_depend)
Chris PeBenito c22038
allow $1 dmesg_exec_t:file { getattr read execute };
Chris PeBenito c22038
allow $1 dmesg_t:process transition;
Chris PeBenito c22038
type_transition $1 dmesg_exec_t:process dmesg_t;
Chris PeBenito c22038
dontaudit $1 dmesg_t:process { noatsecure siginh rlimitinh };
Chris PeBenito 4bf4ed
allow $1 dmesg_t:fd use;
Chris PeBenito 4bf4ed
allow dmesg_t $1:fd use;
Chris PeBenito 4bf4ed
allow dmesg_t $1:fifo_file rw_file_perms;
Chris PeBenito 4bf4ed
allow dmesg_t $1:process sigchld;
Chris PeBenito c22038
')
Chris PeBenito c22038
Chris PeBenito c22038
define(`dmesg_transition_depend',`
Chris PeBenito c22038
type dmesg_t, dmesg_exec_t;
Chris PeBenito c22038
class file { getattr read execute };
Chris PeBenito 4bf4ed
class process { transition noatsecure siginh rlimitinh sigchld };
Chris PeBenito 4bf4ed
class fd use;
Chris PeBenito 4bf4ed
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
##	<infoflow type="none"/>
Chris PeBenito c22038
## </interface>
Chris PeBenito c22038
#
Chris PeBenito c22038
define(`dmesg_execute',`
Chris PeBenito c22038
requires_block_template(`$0'_depend)
Chris PeBenito c22038
allow $1 dmesg_exec_t:file { getattr read execute execute_no_trans };
Chris PeBenito c22038
')
Chris PeBenito c22038
Chris PeBenito c22038
define(`dmesg_execute_depend',`
Chris PeBenito c22038
type dmesg_exec_t;
Chris PeBenito c22038
class file { getattr read execute execute_no_trans };
Chris PeBenito c22038
')
Chris PeBenito c22038
Chris PeBenito c22038
## </module>