selinux-policy/refpolicy/policy/modules/system/getty.if

104 lines
2.5 KiB
Plaintext
Raw Normal View History

2005-06-07 22:36:07 +00:00
## <module name="getty" layer="system">
## <summary>Policy for getty.</summary>
########################################
2005-06-13 17:35:46 +00:00
## <interface name="getty_domtrans">
2005-06-07 22:36:07 +00:00
## <description>
## Execute gettys in the getty domain.
## </description>
## <parameter name="domain">
## The type of the process performing this action.
## </parameter>
## </interface>
2005-04-20 13:24:10 +00:00
#
2005-06-13 17:35:46 +00:00
define(`getty_domtrans',`
requires_block_template(`$0'_depend)
allow $1 getty_exec_t:file { getattr read execute };
allow $1 getty_t:process transition;
type_transition $1 getty_exec_t:process getty_t;
dontaudit $1 getty_t:process { noatsecure siginh rlimitinh };
allow $1 getty_t:fd use;
allow getty_t $1:fd use;
allow getty_t $1:fifo_file rw_file_perms;
allow getty_t $1:process sigchld;
2005-04-20 13:24:10 +00:00
')
2005-06-13 17:35:46 +00:00
define(`getty_domtrans_depend',`
type getty_t, getty_exec_t;
class file { getattr read execute };
class process { transition noatsecure siginh rlimitinh sigchld };
class fd use;
class fifo_file rw_file_perms;
2005-04-20 13:24:10 +00:00
')
2005-06-07 22:36:07 +00:00
########################################
2005-06-13 17:35:46 +00:00
## <interface name="getty_read_log">
2005-06-07 22:36:07 +00:00
## <description>
## Allow process to read getty log file.
## </description>
## <parameter name="domain">
## The type of the process performing this action.
## </parameter>
## </interface>
2005-04-20 13:24:10 +00:00
#
2005-06-13 17:35:46 +00:00
define(`getty_read_log',`
requires_block_template(`$0'_depend)
allow $1 getty_log_t:file { getattr read };
2005-04-20 13:24:10 +00:00
')
2005-06-13 17:35:46 +00:00
define(`getty_read_log_depend',`
type getty_log_t;
class file { getattr read };
2005-04-20 13:24:10 +00:00
')
2005-06-07 22:36:07 +00:00
########################################
2005-06-13 17:35:46 +00:00
## <interface name="getty_read_config">
2005-06-07 22:36:07 +00:00
## <description>
## Allow process to read getty config file.
## </description>
## <parameter name="domain">
## The type of the process performing this action.
## </parameter>
## </interface>
2005-04-20 13:24:10 +00:00
#
2005-06-13 17:35:46 +00:00
define(`getty_read_config',`
requires_block_template(`$0'_depend)
allow $1 getty_etc_t:file { getattr read };
2005-04-20 13:24:10 +00:00
')
2005-06-13 17:35:46 +00:00
define(`getty_read_config_depend',`
type getty_etc_t;
class file { getattr read };
2005-04-20 13:24:10 +00:00
')
2005-06-07 22:36:07 +00:00
########################################
2005-06-13 17:35:46 +00:00
## <interface name="getty_modify_config">
2005-06-07 22:36:07 +00:00
## <description>
## Allow process to edit getty config file.
## </description>
## <parameter name="domain">
## The type of the process performing this action.
## </parameter>
## </interface>
2005-04-20 13:24:10 +00:00
#
2005-06-13 17:35:46 +00:00
define(`getty_modify_config',`
requires_block_template(`$0'_depend)
allow $1 getty_etc_t:file { getattr read write };
2005-04-20 13:24:10 +00:00
')
2005-06-13 17:35:46 +00:00
define(`getty_modify_config_depend',`
type getty_etc_t;
class file { getattr read write };
2005-04-20 13:24:10 +00:00
')
2005-06-07 22:36:07 +00:00
## </module>