2005-04-20 19:07:16 +00:00
|
|
|
# Copyright (C) 2005 Tresys Technology, LLC
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
# init_transition(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`init_transition',`
|
2005-05-03 20:23:33 +00:00
|
|
|
requires_block_template(init_transition_depend)
|
2005-04-14 20:18:17 +00:00
|
|
|
allow $1 init_exec_t:file { getattr read execute };
|
|
|
|
allow $1 init_t:process transition;
|
|
|
|
type_transition $1 init_exec_t:file init_t;
|
|
|
|
dontaudit $1 init_t:process { noatsecure siginh rlimitinh };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_transition_depend',`
|
|
|
|
type init_t, init_exec_t;
|
|
|
|
class file { getattr read execute };
|
|
|
|
class process { transition noatsecure siginh rlimitinh };
|
|
|
|
')
|
|
|
|
|
2005-04-28 21:41:09 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
# init_get_control_channel_attributes(domain)
|
2005-04-28 21:41:09 +00:00
|
|
|
#
|
|
|
|
define(`init_get_control_channel_attributes',`
|
2005-05-03 20:23:33 +00:00
|
|
|
requires_block_template(init_get_control_channel_attributes_depend)
|
2005-04-28 21:41:09 +00:00
|
|
|
allow $1 initctl_t:fifo_file getattr;
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_get_control_channel_attributes_depend',`
|
|
|
|
type initctl_t;
|
|
|
|
class fifo_file getattr;
|
|
|
|
')
|
|
|
|
|
2005-05-02 18:40:05 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# init_use_control_channel(domain)
|
|
|
|
#
|
|
|
|
define(`init_use_control_channel',`
|
|
|
|
requires_block_template(init_use_control_channel_depend)
|
|
|
|
allow $1 initctl_t:fifo_file { getattr read write };
|
|
|
|
devices_list_device_nodes($1)
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_use_control_channel_depend',`
|
|
|
|
type initctl_t;
|
|
|
|
class fifo_file { getattr read write };
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# init_ignore_use_control_channel(domain)
|
|
|
|
#
|
|
|
|
define(`init_ignore_use_control_channel',`
|
|
|
|
requires_block_template(init_ignore_use_control_channel_depend)
|
|
|
|
dontaudit $1 initctl_t:fifo_file { read write };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_ignore_use_control_channel_depend',`
|
|
|
|
type initctl_t;
|
|
|
|
class fifo_file { read write };
|
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
# init_sigchld(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`init_sigchld',`
|
2005-05-03 20:23:33 +00:00
|
|
|
requires_block_template(init_sigchld_depend)
|
2005-04-14 20:18:17 +00:00
|
|
|
allow $1 init_t:process sigchld;
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_sigchld_depend',`
|
|
|
|
type init_t;
|
|
|
|
class process sigchld;
|
|
|
|
')
|
|
|
|
|
2005-04-27 21:56:12 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
# init_use_file_descriptors(domain)
|
2005-04-27 21:56:12 +00:00
|
|
|
#
|
|
|
|
define(`init_use_file_descriptors',`
|
2005-05-03 20:23:33 +00:00
|
|
|
requires_block_template(init_use_file_descriptors_depend)
|
2005-04-27 21:56:12 +00:00
|
|
|
allow $1 init_t:fd use;
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_use_file_descriptors_depend',`
|
|
|
|
type init_t;
|
|
|
|
class fd use;
|
|
|
|
')
|
|
|
|
|
2005-04-28 19:50:58 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
# init_ignore_use_file_descriptors(domain)
|
2005-04-28 19:50:58 +00:00
|
|
|
#
|
|
|
|
define(`init_ignore_use_file_descriptors',`
|
2005-05-03 20:23:33 +00:00
|
|
|
requires_block_template(init_ignore_use_file_descriptors_depend)
|
2005-04-28 19:50:58 +00:00
|
|
|
dontaudit $1 init_t:fd use;
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_ignore_use_file_descriptors_depend',`
|
|
|
|
type init_t;
|
|
|
|
class fd use;
|
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
# init_script_transition(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`init_script_transition',`
|
2005-05-03 20:23:33 +00:00
|
|
|
requires_block_template(init_script_transition_depend)
|
2005-04-14 20:18:17 +00:00
|
|
|
allow $1 initrc_exec_t:file { getattr read execute };
|
|
|
|
allow $1 initrc_t:process transition;
|
2005-04-22 22:00:02 +00:00
|
|
|
type_transition $1 initrc_exec_t:process init_t;
|
2005-04-14 20:18:17 +00:00
|
|
|
dontaudit $1 init_t:process { noatsecure siginh rlimitinh };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_script_transition_depend',`
|
|
|
|
type initrc_t, initrc_exec_t;
|
|
|
|
class file { getattr read execute };
|
|
|
|
class process { transition noatsecure siginh rlimitinh };
|
|
|
|
')
|
|
|
|
|
2005-04-28 18:59:01 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
# init_script_direct_admin_transition(role,domain)
|
|
|
|
#
|
|
|
|
define(`init_script_direct_admin_transition',`
|
|
|
|
requires_block_template(init_script_direct_admin_transition_depend)
|
|
|
|
allow $2 initrc_exec_t:file { getattr read execute };
|
|
|
|
allow $2 initrc_t:process transition;
|
|
|
|
type_transition $2 initrc_exec_t:file init_t;
|
|
|
|
role_transition $1 initrc_exec_t system_r;
|
|
|
|
dontaudit $2 init_t:process { noatsecure siginh rlimitinh };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_script_direct_admin_transition_depend',`
|
|
|
|
type initrc_t, initrc_exec_t;
|
|
|
|
class file { getattr read execute };
|
|
|
|
class process { transition noatsecure siginh rlimitinh };
|
|
|
|
kernel_system_role_transition_depend
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# init_script_use_file_descriptors(domain)
|
2005-04-28 18:59:01 +00:00
|
|
|
#
|
|
|
|
define(`init_script_use_file_descriptors',`
|
2005-05-03 20:23:33 +00:00
|
|
|
requires_block_template(init_script_use_file_descriptors_depend)
|
2005-04-28 18:59:01 +00:00
|
|
|
allow $1 initrc_t:fd use;
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_script_use_file_descriptors_depend',`
|
|
|
|
type initrc_t;
|
|
|
|
class fd use;
|
|
|
|
')
|
|
|
|
|
2005-04-27 21:56:12 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
# init_script_use_pseudoterminal(domain)
|
2005-04-27 21:56:12 +00:00
|
|
|
#
|
|
|
|
define(`init_script_use_pseudoterminal',`
|
2005-05-03 20:23:33 +00:00
|
|
|
requires_block_template(init_script_use_pseudoterminal_depend)
|
2005-04-27 21:56:12 +00:00
|
|
|
allow $1 initrc_devpts_t:chr_file { read write };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_script_use_pseudoterminal_depend',`
|
|
|
|
type initrc_devpts_t;
|
|
|
|
class chr_file { read write };
|
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
# init_script_read_runtime_data(domain)
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
2005-05-03 20:23:33 +00:00
|
|
|
define(`init_script_read_runtime_data',`
|
|
|
|
requires_block_template(init_script_read_runtime_data_depend)
|
|
|
|
files_read_runtime_data_directory($1)
|
|
|
|
allow $1 initrc_var_run_t:file { getattr read };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|
|
|
|
|
2005-05-03 20:23:33 +00:00
|
|
|
define(`init_script_read_runtime_data_depend',`
|
|
|
|
type initrc_var_run_t;
|
|
|
|
class file { getattr read };
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# init_script_modify_runtime_data(domain)
|
|
|
|
#
|
|
|
|
define(`init_script_modify_runtime_data',`
|
|
|
|
requires_block_template(init_script_modify_runtime_data_depend)
|
|
|
|
files_read_runtime_data_directory($1)
|
|
|
|
allow $1 initrc_var_run_t:file { getattr read write append };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_script_modify_runtime_data_depend',`
|
|
|
|
type initrc_var_run_t;
|
|
|
|
class file { getattr read write append };
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# init_script_ignore_modify_runtime_data(domain)
|
|
|
|
#
|
|
|
|
define(`init_script_ignore_modify_runtime_data',`
|
|
|
|
requires_block_template(init_script_ignore_modify_runtime_data_depend)
|
|
|
|
dontaudit $1 initrc_var_run_t:file { getattr read write append };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`init_script_ignore_modify_runtime_data_depend',`
|
|
|
|
type initrc_var_run_t;
|
|
|
|
class file { getattr read write append };
|
2005-04-14 20:18:17 +00:00
|
|
|
')
|