2005-04-20 19:07:16 +00:00
|
|
|
# Copyright (C) 2005 Tresys Technology, LLC
|
|
|
|
|
2005-04-20 13:24:10 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# getty_transition(domain)
|
2005-04-20 13:24:10 +00:00
|
|
|
#
|
|
|
|
define(`getty_transition',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-04-20 13:24:10 +00:00
|
|
|
allow $1 getty_exec_t:file { getattr read execute };
|
|
|
|
allow $1 getty_t:process transition;
|
2005-05-24 20:45:27 +00:00
|
|
|
type_transition $1 getty_exec_t:process getty_t;
|
2005-04-20 13:24:10 +00:00
|
|
|
dontaudit $1 getty_t:process { noatsecure siginh rlimitinh };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`getty_transition_depend',`
|
|
|
|
type getty_t, getty_exec_t;
|
|
|
|
class file { getattr read execute };
|
|
|
|
class process { transition noatsecure siginh rlimitinh };
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# getty_read_log_file(domain)
|
2005-04-20 13:24:10 +00:00
|
|
|
#
|
|
|
|
define(`getty_read_log_file',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-04-20 13:24:10 +00:00
|
|
|
allow $1 getty_log_t:file { getattr read };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`getty_read_log_file_depend',`
|
|
|
|
type getty_log_t;
|
|
|
|
class file { getattr read };
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# getty_read_config_file(domain)
|
2005-04-20 13:24:10 +00:00
|
|
|
#
|
|
|
|
define(`getty_read_config_file',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-04-20 13:24:10 +00:00
|
|
|
allow $1 getty_etc_t:file { getattr read };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`getty_read_config_file_depend',`
|
|
|
|
type getty_etc_t;
|
|
|
|
class file { getattr read };
|
|
|
|
')
|
|
|
|
|
|
|
|
#######################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# getty_modify_config_file(domain)
|
2005-04-20 13:24:10 +00:00
|
|
|
#
|
|
|
|
define(`getty_modify_config_file',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-04-20 13:24:10 +00:00
|
|
|
allow $1 getty_etc_t:file { getattr read write };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`getty_modify_config_file_depend',`
|
|
|
|
type getty_etc_t;
|
|
|
|
class file { getattr read write };
|
|
|
|
')
|