2010-12-13 14:12:22 +00:00
|
|
|
policy_module(shutdown, 1.1.0)
|
2010-07-07 15:10:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type shutdown_t;
|
|
|
|
type shutdown_exec_t;
|
|
|
|
application_domain(shutdown_t, shutdown_exec_t)
|
|
|
|
role system_r types shutdown_t;
|
|
|
|
|
|
|
|
type shutdown_etc_t;
|
|
|
|
files_config_file(shutdown_etc_t)
|
|
|
|
|
|
|
|
type shutdown_var_run_t;
|
|
|
|
files_pid_file(shutdown_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# shutdown local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow shutdown_t self:capability { dac_override kill setuid sys_tty_config };
|
|
|
|
allow shutdown_t self:process { fork signal signull };
|
|
|
|
|
|
|
|
allow shutdown_t self:fifo_file manage_fifo_file_perms;
|
|
|
|
allow shutdown_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
|
|
|
|
manage_files_pattern(shutdown_t, shutdown_etc_t, shutdown_etc_t)
|
|
|
|
files_etc_filetrans(shutdown_t, shutdown_etc_t, file)
|
|
|
|
|
|
|
|
manage_files_pattern(shutdown_t, shutdown_var_run_t, shutdown_var_run_t)
|
|
|
|
files_pid_filetrans(shutdown_t, shutdown_var_run_t, file)
|
|
|
|
|
2010-10-04 18:23:40 +00:00
|
|
|
domain_use_interactive_fds(shutdown_t)
|
|
|
|
|
2010-07-07 15:10:56 +00:00
|
|
|
files_read_etc_files(shutdown_t)
|
|
|
|
files_read_generic_pids(shutdown_t)
|
|
|
|
|
|
|
|
term_use_all_terms(shutdown_t)
|
|
|
|
|
|
|
|
auth_use_nsswitch(shutdown_t)
|
|
|
|
auth_write_login_records(shutdown_t)
|
|
|
|
|
|
|
|
init_dontaudit_write_utmp(shutdown_t)
|
|
|
|
init_read_utmp(shutdown_t)
|
2010-10-04 18:23:41 +00:00
|
|
|
init_stream_connect(shutdown_t)
|
2010-07-07 15:10:56 +00:00
|
|
|
init_telinit(shutdown_t)
|
|
|
|
|
2010-10-04 18:23:42 +00:00
|
|
|
logging_search_logs(shutdown_t)
|
2010-07-07 15:10:56 +00:00
|
|
|
logging_send_audit_msgs(shutdown_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(shutdown_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dbus_system_bus_client(shutdown_t)
|
|
|
|
dbus_connect_system_bus(shutdown_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
xserver_dontaudit_write_log(shutdown_t)
|
|
|
|
')
|