Chris PeBenito 3865d6
## <module name="getty" layer="system">
Chris PeBenito 3865d6
## <summary>Policy for getty.</summary>
Chris PeBenito 3865d6
Chris PeBenito 3865d6
########################################
Chris PeBenito c9428d
## <interface name="getty_domtrans">
Chris PeBenito 3865d6
##     <description>
Chris PeBenito 3865d6
##             Execute gettys in the getty domain.
Chris PeBenito 3865d6
##     </description>
Chris PeBenito 3865d6
##     <parameter name="domain">
Chris PeBenito 3865d6
##             The type of the process performing this action.
Chris PeBenito 3865d6
##     </parameter>
Chris PeBenito 3865d6
## </interface>
Chris PeBenito 015435
#
Chris PeBenito c9428d
define(`getty_domtrans',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 getty_exec_t:file { getattr read execute };
Chris PeBenito 0c73cd
	allow $1 getty_t:process transition;
Chris PeBenito 0c73cd
	type_transition $1 getty_exec_t:process getty_t;
Chris PeBenito 0c73cd
	dontaudit $1 getty_t:process { noatsecure siginh rlimitinh };
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 getty_t:fd use;
Chris PeBenito 0c73cd
	allow getty_t $1:fd use;
Chris PeBenito 0c73cd
	allow getty_t $1:fifo_file rw_file_perms;
Chris PeBenito 0c73cd
	allow getty_t $1:process sigchld;
Chris PeBenito 015435
')
Chris PeBenito 015435
Chris PeBenito c9428d
define(`getty_domtrans_depend',`
Chris PeBenito 0c73cd
	type getty_t, getty_exec_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class file { getattr read execute };
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 015435
')
Chris PeBenito 015435
Chris PeBenito 3865d6
########################################
Chris PeBenito c9428d
## <interface name="getty_read_log">
Chris PeBenito 3865d6
##     <description>
Chris PeBenito 3865d6
##             Allow process to read getty log file.
Chris PeBenito 3865d6
##     </description>
Chris PeBenito 3865d6
##     <parameter name="domain">
Chris PeBenito 3865d6
##             The type of the process performing this action.
Chris PeBenito 3865d6
##     </parameter>
Chris PeBenito 3865d6
## </interface>
Chris PeBenito 015435
#
Chris PeBenito c9428d
define(`getty_read_log',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 getty_log_t:file { getattr read };
Chris PeBenito 015435
')
Chris PeBenito 015435
Chris PeBenito c9428d
define(`getty_read_log_depend',`
Chris PeBenito 0c73cd
	type getty_log_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class file { getattr read };
Chris PeBenito 015435
')
Chris PeBenito 015435
Chris PeBenito 3865d6
########################################
Chris PeBenito c9428d
## <interface name="getty_read_config">
Chris PeBenito 3865d6
##     <description>
Chris PeBenito 3865d6
##             Allow process to read getty config file.
Chris PeBenito 3865d6
##     </description>
Chris PeBenito 3865d6
##     <parameter name="domain">
Chris PeBenito 3865d6
##             The type of the process performing this action.
Chris PeBenito 3865d6
##     </parameter>
Chris PeBenito 3865d6
## </interface>
Chris PeBenito 015435
#
Chris PeBenito c9428d
define(`getty_read_config',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 getty_etc_t:file { getattr read };
Chris PeBenito 015435
')
Chris PeBenito 015435
Chris PeBenito c9428d
define(`getty_read_config_depend',`
Chris PeBenito 0c73cd
	type getty_etc_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class file { getattr read };
Chris PeBenito 015435
')
Chris PeBenito 015435
Chris PeBenito 3865d6
########################################
Chris PeBenito c9428d
## <interface name="getty_modify_config">
Chris PeBenito 3865d6
##     <description>
Chris PeBenito 3865d6
##             Allow process to edit getty config file.
Chris PeBenito 3865d6
##     </description>
Chris PeBenito 3865d6
##     <parameter name="domain">
Chris PeBenito 3865d6
##             The type of the process performing this action.
Chris PeBenito 3865d6
##     </parameter>
Chris PeBenito 3865d6
## </interface>
Chris PeBenito 015435
#
Chris PeBenito c9428d
define(`getty_modify_config',`
Chris PeBenito 0c73cd
	requires_block_template(`$0'_depend)
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	allow $1 getty_etc_t:file { getattr read write };
Chris PeBenito 015435
')
Chris PeBenito 015435
Chris PeBenito c9428d
define(`getty_modify_config_depend',`
Chris PeBenito 0c73cd
	type getty_etc_t;
Chris PeBenito 0c73cd
Chris PeBenito 0c73cd
	class file { getattr read write };
Chris PeBenito 015435
')
Chris PeBenito 3865d6
Chris PeBenito 3865d6
## </module>