|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d28e52 |
policy_module(init,1.6.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
class passwd rootok;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
56e1b3 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
56e1b3 |
## <desc>
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## Allow all daemons the ability to use unallocated ttys
|
|
Chris PeBenito |
56e1b3 |
##
|
|
Chris PeBenito |
56e1b3 |
## </desc>
|
|
Chris PeBenito |
56e1b3 |
gen_tunable(allow_daemons_use_tty,false)
|
|
Chris PeBenito |
56e1b3 |
')
|
|
Chris PeBenito |
56e1b3 |
|
|
Chris PeBenito |
17de1b |
# used for direct running of init scripts
|
|
Chris PeBenito |
17de1b |
# by admin domains
|
|
Chris PeBenito |
17de1b |
attribute direct_run_init;
|
|
Chris PeBenito |
17de1b |
attribute direct_init;
|
|
Chris PeBenito |
17de1b |
attribute direct_init_entry;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
693d4a |
# Mark process types as daemons
|
|
Chris PeBenito |
693d4a |
attribute daemon;
|
|
Chris PeBenito |
693d4a |
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# init_t is the domain of the init process.
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
e070dd |
type init_t;
|
|
Chris PeBenito |
e070dd |
type init_exec_t;
|
|
Chris PeBenito |
17de1b |
domain_type(init_t)
|
|
Chris PeBenito |
17de1b |
domain_entry_file(init_t,init_exec_t)
|
|
Chris PeBenito |
e070dd |
kernel_domtrans_to(init_t,init_exec_t)
|
|
Chris PeBenito |
e070dd |
role system_r types init_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# init_var_run_t is the type for /var/run/shutdown.pid.
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
type init_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(init_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# initctl_t is the type of the named pipe created
|
|
Chris PeBenito |
17de1b |
# by init during initialization. This pipe is used
|
|
Chris PeBenito |
17de1b |
# to communicate with init.
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
type initctl_t;
|
|
Chris PeBenito |
17de1b |
files_type(initctl_t)
|
|
Chris PeBenito |
17de1b |
mls_trusted_object(initctl_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
e070dd |
type initrc_t;
|
|
Chris PeBenito |
e070dd |
type initrc_exec_t;
|
|
Chris PeBenito |
17de1b |
domain_type(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_entry_file(initrc_t,initrc_exec_t)
|
|
Chris PeBenito |
e070dd |
role system_r types initrc_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type initrc_devpts_t;
|
|
Chris PeBenito |
17de1b |
term_pty(initrc_devpts_t)
|
|
Chris PeBenito |
17de1b |
files_type(initrc_devpts_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type initrc_state_t;
|
|
Chris PeBenito |
17de1b |
files_type(initrc_state_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type initrc_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(initrc_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type initrc_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(initrc_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
e070dd |
ifdef(`enable_mls',`
|
|
Chris PeBenito |
e070dd |
kernel_ranged_domtrans_to(init_t,init_exec_t,s0 - mls_systemhigh)
|
|
Chris PeBenito |
e070dd |
')
|
|
Chris PeBenito |
e070dd |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Init local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Use capabilities. old rule:
|
|
Chris PeBenito |
17de1b |
allow init_t self:capability ~sys_module;
|
|
Chris PeBenito |
17de1b |
# is ~sys_module really needed? observed:
|
|
Chris PeBenito |
17de1b |
# sys_boot
|
|
Chris PeBenito |
17de1b |
# sys_tty_config
|
|
Chris PeBenito |
17de1b |
# kill: now provided by domain_kill_all_domains()
|
|
Chris PeBenito |
17de1b |
# setuid (from /sbin/shutdown)
|
|
Chris PeBenito |
17de1b |
# sys_chroot (from /usr/bin/chroot): now provided by corecmd_chroot_exec_chroot()
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow init_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Re-exec itself
|
|
Chris PeBenito |
c0868a |
can_exec(init_t,init_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow init_t initrc_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# For /var/run/shutdown.pid.
|
|
Chris PeBenito |
c0868a |
allow init_t init_var_run_t:file manage_file_perms;
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(init_t,init_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow init_t initctl_t:fifo_file manage_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
dev_filetrans(init_t,initctl_t,fifo_file)
|
|
Chris PeBenito |
c0868a |
fs_associate_tmpfs(initctl_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Modify utmp.
|
|
Chris PeBenito |
17de1b |
allow init_t initrc_var_run_t:file { rw_file_perms setattr };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(init_t)
|
|
Chris PeBenito |
17de1b |
kernel_share_state(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_chroot(init_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_kill_all_domains(init_t)
|
|
Chris PeBenito |
17de1b |
domain_signal_all_domains(init_t)
|
|
Chris PeBenito |
17de1b |
domain_signull_all_domains(init_t)
|
|
Chris PeBenito |
17de1b |
domain_sigstop_all_domains(init_t)
|
|
Chris PeBenito |
17de1b |
domain_sigstop_all_domains(init_t)
|
|
Chris PeBenito |
17de1b |
domain_sigchld_all_domains(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(init_t)
|
|
Chris PeBenito |
17de1b |
files_rw_generic_pids(init_t)
|
|
Chris PeBenito |
17de1b |
files_dontaudit_search_isid_type_dirs(init_t)
|
|
Chris PeBenito |
17de1b |
files_manage_etc_runtime_files(init_t)
|
|
Chris PeBenito |
17de1b |
files_etc_filetrans_etc_runtime(init_t,file)
|
|
Chris PeBenito |
17de1b |
# Run /etc/X11/prefdm:
|
|
Chris PeBenito |
17de1b |
files_exec_etc_files(init_t)
|
|
Chris PeBenito |
17de1b |
# file descriptors inherited from the rootfs:
|
|
Chris PeBenito |
17de1b |
files_dontaudit_rw_root_files(init_t)
|
|
Chris PeBenito |
17de1b |
files_dontaudit_rw_root_chr_files(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# cjp: this may be related to /dev/log
|
|
Chris PeBenito |
17de1b |
fs_write_ramfs_sockets(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mcs_process_set_categories(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mls_process_write_down(init_t)
|
|
Chris PeBenito |
d9845a |
mls_fd_use_all_levels(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
selinux_set_boolean(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_use_all_terms(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Run init scripts.
|
|
Chris PeBenito |
17de1b |
init_domtrans_script(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(init_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(init_t)
|
|
Chris PeBenito |
17de1b |
libs_rw_ld_so_cache(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(init_t)
|
|
Chris PeBenito |
17de1b |
logging_rw_generic_logs(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mcs_killall(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mls_file_read_up(init_t)
|
|
Chris PeBenito |
17de1b |
mls_file_write_down(init_t)
|
|
Chris PeBenito |
17de1b |
mls_rangetrans_target(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
seutil_read_config(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(init_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d15dd5 |
ifdef(`distro_gentoo',`
|
|
Chris PeBenito |
d15dd5 |
allow init_t self:process { getcap setcap };
|
|
Chris PeBenito |
d15dd5 |
')
|
|
Chris PeBenito |
d15dd5 |
|
|
Chris PeBenito |
17de1b |
ifdef(`distro_redhat',`
|
|
Chris PeBenito |
17de1b |
fs_rw_tmpfs_chr_files(init_t)
|
|
Chris PeBenito |
17de1b |
fs_tmpfs_filetrans(init_t,initctl_t,fifo_file)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
17de1b |
unconfined_domain(init_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
auth_rw_login_records(init_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nscd_socket_use(init_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Run the shell in the sysadm_t domain for single-user mode.
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
userdom_shell_domtrans_sysadm(init_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Init script local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow initrc_t self:process { getpgid setsched setpgid setrlimit getsched };
|
|
Chris PeBenito |
17de1b |
allow initrc_t self:capability ~{ sys_admin sys_module };
|
|
Chris PeBenito |
693d4a |
dontaudit initrc_t self:capability sys_module; # sysctl is triggering this
|
|
Chris PeBenito |
17de1b |
allow initrc_t self:passwd rootok;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Allow IPC with self
|
|
Chris PeBenito |
17de1b |
allow initrc_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow initrc_t self:unix_stream_socket { create listen accept ioctl read getattr write setattr append bind connect getopt setopt shutdown connectto };
|
|
Chris PeBenito |
17de1b |
allow initrc_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow initrc_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow initrc_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow initrc_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow initrc_t initrc_devpts_t:chr_file rw_term_perms;
|
|
Chris PeBenito |
17de1b |
term_create_pty(initrc_t,initrc_devpts_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d6d16b |
# Going to single user mode
|
|
Chris PeBenito |
d6d16b |
init_exec(initrc_t)
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
17de1b |
can_exec(initrc_t,initrc_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_dirs_pattern(initrc_t,initrc_state_t,initrc_state_t)
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(initrc_t,initrc_state_t,initrc_state_t)
|
|
Chris PeBenito |
c0868a |
manage_lnk_files_pattern(initrc_t,initrc_state_t,initrc_state_t)
|
|
Chris PeBenito |
c0868a |
manage_fifo_files_pattern(initrc_t,initrc_state_t,initrc_state_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow initrc_t initrc_var_run_t:file manage_file_perms;
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(initrc_t,initrc_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
can_exec(initrc_t,initrc_tmp_t)
|
|
Chris PeBenito |
c0868a |
allow initrc_t initrc_tmp_t:file manage_file_perms;
|
|
Chris PeBenito |
c0868a |
allow initrc_t initrc_tmp_t:dir manage_dir_perms;
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(initrc_t,initrc_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_write_initctl(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(initrc_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_software_raid_state(initrc_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_network_state(initrc_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_ring_buffer(initrc_t)
|
|
Chris PeBenito |
17de1b |
kernel_change_ring_buffer_level(initrc_t)
|
|
Chris PeBenito |
17de1b |
kernel_clear_ring_buffer(initrc_t)
|
|
Chris PeBenito |
17de1b |
kernel_get_sysvipc_info(initrc_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_all_sysctls(initrc_t)
|
|
Chris PeBenito |
17de1b |
kernel_rw_all_sysctls(initrc_t)
|
|
Chris PeBenito |
17de1b |
# for lsof which is used by alsa shutdown:
|
|
Chris PeBenito |
17de1b |
kernel_dontaudit_getattr_message_if(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_kernel_symbol_table(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corenet_non_ipsec_sendrecv(initrc_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_if(initrc_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_if(initrc_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(initrc_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(initrc_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(initrc_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(initrc_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_connect_all_ports(initrc_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_all_client_packets(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_rand(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_read_urand(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_write_rand(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_write_urand(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_rw_sysfs(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_list_usbfs(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_read_framebuffer(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_read_realtime_clock(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_read_sound_mixer(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_write_sound_mixer(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_setattr_all_chr_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_read_lvm_control(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_delete_lvm_control_dev(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_manage_generic_symlinks(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_manage_generic_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
# Wants to remove udev.tbl:
|
|
Chris PeBenito |
17de1b |
dev_delete_generic_symlinks(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_register_binary_executable_type(initrc_t)
|
|
Chris PeBenito |
17de1b |
# rhgb-console writes to ramfs
|
|
Chris PeBenito |
17de1b |
fs_write_ramfs_pipes(initrc_t)
|
|
Chris PeBenito |
17de1b |
# cjp: not sure why these are here; should use mount policy
|
|
Chris PeBenito |
17de1b |
fs_mount_all_fs(initrc_t)
|
|
Chris PeBenito |
17de1b |
fs_unmount_all_fs(initrc_t)
|
|
Chris PeBenito |
17de1b |
fs_remount_all_fs(initrc_t)
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
465510 |
# initrc_t needs to do a pidof which requires ptrace
|
|
Chris PeBenito |
465510 |
mcs_ptrace_all(initrc_t)
|
|
Chris PeBenito |
465510 |
|
|
Chris PeBenito |
17de1b |
selinux_get_enforce_mode(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
storage_getattr_fixed_disk_dev(initrc_t)
|
|
Chris PeBenito |
17de1b |
storage_setattr_fixed_disk_dev(initrc_t)
|
|
Chris PeBenito |
17de1b |
storage_setattr_removable_dev(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_use_all_terms(initrc_t)
|
|
Chris PeBenito |
17de1b |
term_reset_tty_labels(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
auth_rw_login_records(initrc_t)
|
|
Chris PeBenito |
17de1b |
auth_setattr_login_records(initrc_t)
|
|
Chris PeBenito |
17de1b |
auth_rw_lastlog(initrc_t)
|
|
Chris PeBenito |
17de1b |
auth_read_pam_pid(initrc_t)
|
|
Chris PeBenito |
17de1b |
auth_delete_pam_pid(initrc_t)
|
|
Chris PeBenito |
17de1b |
auth_delete_pam_console_data(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_all_executables(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_kill_all_domains(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_signal_all_domains(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_signull_all_domains(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_sigstop_all_domains(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_sigstop_all_domains(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_sigchld_all_domains(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_read_all_domains_state(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_getattr_all_domains(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_dontaudit_ptrace_all_domains(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_getsession_all_domains(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(initrc_t)
|
|
Chris PeBenito |
17de1b |
# for lsof which is used by alsa shutdown:
|
|
Chris PeBenito |
17de1b |
domain_dontaudit_getattr_all_udp_sockets(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_dontaudit_getattr_all_tcp_sockets(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_dontaudit_getattr_all_dgram_sockets(initrc_t)
|
|
Chris PeBenito |
17de1b |
domain_dontaudit_getattr_all_pipes(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_getattr_all_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_getattr_all_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_getattr_all_symlinks(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_getattr_all_pipes(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_getattr_all_sockets(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_purge_tmp(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_delete_all_locks(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_read_all_pids(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_delete_all_pids(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_delete_all_pid_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_manage_etc_runtime_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_etc_filetrans_etc_runtime(initrc_t,file)
|
|
Chris PeBenito |
17de1b |
files_manage_generic_locks(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_exec_etc_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_manage_urandom_seed(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_manage_generic_spool(initrc_t)
|
|
Chris PeBenito |
17de1b |
# Mount and unmount file systems.
|
|
Chris PeBenito |
17de1b |
# cjp: not sure why these are here; should use mount policy
|
|
Chris PeBenito |
17de1b |
files_list_isid_type_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_mounton_isid_type_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_list_default(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_mounton_default(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_rw_ld_so_cache(initrc_t)
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(initrc_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(initrc_t)
|
|
Chris PeBenito |
17de1b |
libs_exec_lib_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(initrc_t)
|
|
Chris PeBenito |
17de1b |
logging_manage_generic_logs(initrc_t)
|
|
Chris PeBenito |
17de1b |
logging_read_all_logs(initrc_t)
|
|
Chris PeBenito |
17de1b |
logging_append_all_logs(initrc_t)
|
|
Chris PeBenito |
17de1b |
logging_read_audit_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(initrc_t)
|
|
Chris PeBenito |
17de1b |
# slapd needs to read cert files from its initscript
|
|
Chris PeBenito |
17de1b |
miscfiles_read_certs(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mcs_killall(initrc_t)
|
|
Chris PeBenito |
17de1b |
mcs_process_set_categories(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mls_file_read_up(initrc_t)
|
|
Chris PeBenito |
17de1b |
mls_file_write_down(initrc_t)
|
|
Chris PeBenito |
17de1b |
mls_process_read_up(initrc_t)
|
|
Chris PeBenito |
17de1b |
mls_process_write_down(initrc_t)
|
|
Chris PeBenito |
17de1b |
mls_rangetrans_source(initrc_t)
|
|
Chris PeBenito |
17de1b |
mls_rangetrans_target(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
modutils_read_module_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
modutils_domtrans_insmod(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
seutil_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_read_all_users_home_content_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
# Allow access to the sysadm TTYs. Note that this will give access to the
|
|
Chris PeBenito |
17de1b |
# TTYs to any process in the initrc_t domain. Therefore, daemons and such
|
|
Chris PeBenito |
17de1b |
# started from init should be placed in their own domain.
|
|
Chris PeBenito |
17de1b |
userdom_use_sysadm_terms(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`distro_debian',`
|
|
Chris PeBenito |
17de1b |
dev_setattr_generic_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_tmpfs_filetrans(initrc_t,initrc_var_run_t,dir)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# for storing state under /dev/shm
|
|
Chris PeBenito |
17de1b |
fs_setattr_tmpfs_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
storage_manage_fixed_disk(initrc_t)
|
|
Chris PeBenito |
17de1b |
storage_tmpfs_filetrans_fixed_disk(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_setattr_etc_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`distro_gentoo',`
|
|
Chris PeBenito |
d15dd5 |
kernel_dontaudit_getattr_core_if(initrc_t)
|
|
Chris PeBenito |
d15dd5 |
|
|
Chris PeBenito |
d15dd5 |
# seed udev /dev
|
|
Chris PeBenito |
d15dd5 |
allow initrc_t self:process setfscreate;
|
|
Chris PeBenito |
d15dd5 |
dev_create_null_dev(initrc_t)
|
|
Chris PeBenito |
d15dd5 |
dev_create_zero_dev(initrc_t)
|
|
Chris PeBenito |
d15dd5 |
dev_create_generic_dirs(initrc_t)
|
|
Chris PeBenito |
d15dd5 |
term_create_console_dev(initrc_t)
|
|
Chris PeBenito |
d15dd5 |
|
|
Chris PeBenito |
bf469d |
# unfortunately /sbin/rc does stupid tricks
|
|
Chris PeBenito |
bf469d |
# with /dev/.rcboot to decide if we are in
|
|
Chris PeBenito |
bf469d |
# early init
|
|
Chris PeBenito |
bf469d |
dev_create_generic_dirs(initrc_t)
|
|
Chris PeBenito |
bf469d |
dev_delete_generic_dirs(initrc_t)
|
|
Chris PeBenito |
bf469d |
|
|
Chris PeBenito |
e9b9e4 |
# needed until baselayout is fixed to have the
|
|
Chris PeBenito |
e9b9e4 |
# restorecon on /dev to again be immediately after
|
|
Chris PeBenito |
e9b9e4 |
# mounting tmpfs on /dev
|
|
Chris PeBenito |
e9b9e4 |
fs_tmpfs_filetrans(initrc_t,initrc_state_t,file)
|
|
Chris PeBenito |
e9b9e4 |
|
|
Chris PeBenito |
ce6bf7 |
# init scripts touch this
|
|
Chris PeBenito |
ce6bf7 |
clock_dontaudit_write_adjtime(initrc_t)
|
|
Chris PeBenito |
ce6bf7 |
|
|
Chris PeBenito |
e45324 |
# for integrated run_init to read run_init_type.
|
|
Chris PeBenito |
e45324 |
# happens during boot (/sbin/rc execs init scripts)
|
|
Chris PeBenito |
e45324 |
seutil_read_default_contexts(initrc_t)
|
|
Chris PeBenito |
e45324 |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
arpwatch_manage_data_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
dhcpd_setattr_state_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`distro_redhat',`
|
|
Chris PeBenito |
17de1b |
# this is from kmodule, which should get its own policy:
|
|
Chris PeBenito |
17de1b |
allow initrc_t self:capability sys_admin;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
6b19be |
allow initrc_t self:process setfscreate;
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
17de1b |
# Red Hat systems seem to have a stray
|
|
Chris PeBenito |
17de1b |
# fd open from the initrd
|
|
Chris PeBenito |
17de1b |
kernel_dontaudit_use_fds(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_dontaudit_read_root_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
selinux_set_enforce_mode(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# These seem to be from the initrd
|
|
Chris PeBenito |
17de1b |
# during device initialization:
|
|
Chris PeBenito |
17de1b |
dev_create_generic_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_rwx_zero(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_rx_raw_memory(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_wx_raw_memory(initrc_t)
|
|
Chris PeBenito |
17de1b |
storage_raw_read_fixed_disk(initrc_t)
|
|
Chris PeBenito |
17de1b |
storage_raw_write_fixed_disk(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_create_boot_flag(initrc_t)
|
|
Chris PeBenito |
d9845a |
files_rw_boot_symlinks(initrc_t)
|
|
Chris PeBenito |
17de1b |
# wants to read /.fonts directory
|
|
Chris PeBenito |
17de1b |
files_read_default_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
files_mountpoint(initrc_tmp_t)
|
|
Chris PeBenito |
6b19be |
# Needs to cp localtime to /var dirs
|
|
Chris PeBenito |
6b19be |
files_write_var_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_rw_tmpfs_chr_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
storage_manage_fixed_disk(initrc_t)
|
|
Chris PeBenito |
17de1b |
storage_dev_filetrans_fixed_disk(initrc_t)
|
|
Chris PeBenito |
17de1b |
storage_getattr_removable_dev(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# readahead asks for these
|
|
Chris PeBenito |
17de1b |
auth_dontaudit_read_shadow(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
6b19be |
# init scripts cp /etc/localtime over other directories localtime
|
|
Chris PeBenito |
6b19be |
miscfiles_rw_localization(initrc_t)
|
|
Chris PeBenito |
6b19be |
miscfiles_setattr_localization(initrc_t)
|
|
Chris PeBenito |
6b19be |
miscfiles_relabel_localization(initrc_t)
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_fonts(initrc_t)
|
|
Chris PeBenito |
17de1b |
miscfiles_read_hwdata(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
bind_manage_config_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
bind_write_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
#for /etc/rc.d/init.d/nfs to create /etc/exports
|
|
Chris PeBenito |
17de1b |
rpc_write_exports(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
sysnet_rw_dhcp_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
xserver_delete_log(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`distro_suse',`
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
# set permissions on /tmp/.X11-unix
|
|
Chris PeBenito |
17de1b |
xserver_setattr_xdm_tmp_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
17de1b |
domain_subj_id_change_exemption(initrc_t)
|
|
Chris PeBenito |
17de1b |
unconfined_domain(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d6d16b |
ifdef(`distro_redhat',`
|
|
Chris PeBenito |
d6d16b |
# system-config-services causes avc messages that should be dontaudited
|
|
Chris PeBenito |
d6d16b |
unconfined_dontaudit_rw_pipes(daemon)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
693d4a |
|
|
Chris PeBenito |
693d4a |
tunable_policy(`allow_daemons_use_tty',`
|
|
Chris PeBenito |
693d4a |
term_use_unallocated_ttys(daemon)
|
|
Chris PeBenito |
693d4a |
term_use_generic_ptys(daemon)
|
|
Chris PeBenito |
693d4a |
')
|
|
Chris PeBenito |
d6d16b |
|
|
Chris PeBenito |
d6d16b |
optional_policy(`
|
|
Chris PeBenito |
d6d16b |
mono_domtrans(initrc_t)
|
|
Chris PeBenito |
d6d16b |
')
|
|
Chris PeBenito |
17de1b |
',`
|
|
Chris PeBenito |
d15dd5 |
# cjp: require doesnt work in the else of optionals :\
|
|
Chris PeBenito |
17de1b |
# this also would result in a type transition
|
|
Chris PeBenito |
17de1b |
# conflict if sendmail is enabled
|
|
Chris PeBenito |
17de1b |
# optional_policy(`',`
|
|
Chris PeBenito |
17de1b |
# mta_send_mail(initrc_t)
|
|
Chris PeBenito |
17de1b |
# ')
|
|
Chris PeBenito |
8708d9 |
|
|
Chris PeBenito |
8708d9 |
# allow init scripts to su
|
|
Chris PeBenito |
8708d9 |
optional_policy(`
|
|
Chris PeBenito |
8708d9 |
su_restricted_domain_template(initrc,initrc_t,system_r)
|
|
Chris PeBenito |
8708d9 |
')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
amavis_search_lib(initrc_t)
|
|
Chris PeBenito |
17de1b |
amavis_setattr_pid_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
dev_rw_apm_bios(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
apache_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
apache_list_modules(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
automount_exec_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
bind_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# for chmod in start script
|
|
Chris PeBenito |
17de1b |
bind_setattr_pid_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
dev_read_usbfs(initrc_t)
|
|
Chris PeBenito |
17de1b |
bluetooth_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
clamav_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
cpucontrol_stub(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_getattr_cpu_dev(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
dev_getattr_printer_dev(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
cups_read_log(initrc_t)
|
|
Chris PeBenito |
17de1b |
cups_read_rw_config(initrc_t)
|
|
Chris PeBenito |
e2b84e |
#cups init script clears error log
|
|
Chris PeBenito |
e2b84e |
cups_write_log(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
daemontools_manage_svc(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
dbus_connect_system_bus(initrc_t)
|
|
Chris PeBenito |
17de1b |
dbus_send_system_bus(initrc_t)
|
|
Chris PeBenito |
17de1b |
dbus_system_bus_client_template(initrc,initrc_t)
|
|
Chris PeBenito |
17de1b |
dbus_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
networkmanager_dbus_chat(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
ftp_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
gpm_setattr_gpmctl(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
dev_read_usbfs(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# init scripts run /etc/hotplug/usb.rc
|
|
Chris PeBenito |
17de1b |
hotplug_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
modutils_read_module_deps(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
inn_exec_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
ipsec_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
ipsec_manage_pid(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
kerberos_use(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
ldap_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
ldap_list_db(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
loadkeys_exec(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
# This is needed to permit chown to read /var/spool/lpd/lp.
|
|
Chris PeBenito |
17de1b |
# This is opens up security more than necessary; this means that ANYTHING
|
|
Chris PeBenito |
17de1b |
# running in the initrc_t domain can read the printer spool directory.
|
|
Chris PeBenito |
17de1b |
# Perhaps executing /etc/rc.d/init.d/lpd should transition
|
|
Chris PeBenito |
17de1b |
# to domain lpd_t, instead of waiting for executing lpd.
|
|
Chris PeBenito |
17de1b |
lpd_list_spool(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
lpd_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
#allow initrc_t lvm_control_t:chr_file unlink;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_lvm_control(initrc_t)
|
|
Chris PeBenito |
17de1b |
dev_create_generic_chr_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
lvm_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
mailman_list_data(initrc_t)
|
|
Chris PeBenito |
17de1b |
mailman_read_data_symlinks(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
mta_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
mta_dontaudit_read_spool_symlinks(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
ifdef(`distro_redhat',`
|
|
Chris PeBenito |
17de1b |
mysql_manage_db_dirs(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
mysql_stream_connect(initrc_t)
|
|
Chris PeBenito |
17de1b |
mysql_write_log(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(initrc_t)
|
|
Chris PeBenito |
17de1b |
nis_list_var_yp(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nscd_socket_use(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
openvpn_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
postgresql_manage_db(initrc_t)
|
|
Chris PeBenito |
17de1b |
postgresql_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
postfix_list_spool(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
quota_manage_flags(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
raid_manage_mdadm_pid(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
corecmd_shell_entry_type(initrc_t)
|
|
Chris PeBenito |
17de1b |
fs_write_ramfs_sockets(initrc_t)
|
|
Chris PeBenito |
17de1b |
fs_search_ramfs(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
rhgb_rw_stream_sockets(initrc_t)
|
|
Chris PeBenito |
17de1b |
rhgb_stream_connect(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
rpc_read_exports(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
# bash tries to access a block device in the initrd
|
|
Chris PeBenito |
17de1b |
kernel_dontaudit_getattr_unlabeled_blk_files(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# for a bug in rm
|
|
Chris PeBenito |
17de1b |
files_dontaudit_write_all_pids(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# bash tries ioctl for some reason
|
|
Chris PeBenito |
17de1b |
files_dontaudit_ioctl_all_pids(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# why is this needed:
|
|
Chris PeBenito |
17de1b |
rpm_manage_db(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
samba_rw_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
samba_read_winbind_pid(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
squid_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
squid_manage_logs(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
ssh_dontaudit_read_server_keys(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
sysnet_read_dhcpc_state(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_rw_db(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
uml_setattr_util_sockets(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
vmware_read_system_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
vmware_append_system_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
miscfiles_manage_fonts(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# cjp: is this really needed?
|
|
Chris PeBenito |
17de1b |
xfs_read_sockets(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
# Set device ownerships/modes.
|
|
Chris PeBenito |
17de1b |
xserver_setattr_console_pipes(initrc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# init script wants to check if it needs to update windowmanagerlist
|
|
Chris PeBenito |
17de1b |
xserver_read_xdm_rw_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
zebra_read_config(initrc_t)
|
|
Chris PeBenito |
17de1b |
')
|