|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
0251df |
policy_module(perdition,1.2.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type perdition_t;
|
|
Chris PeBenito |
17de1b |
type perdition_exec_t;
|
|
Chris PeBenito |
17de1b |
init_daemon_domain(perdition_t,perdition_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type perdition_etc_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(perdition_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type perdition_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(perdition_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow perdition_t self:capability { setgid setuid };
|
|
Chris PeBenito |
17de1b |
dontaudit perdition_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow perdition_t self:process signal_perms;
|
|
Chris PeBenito |
17de1b |
allow perdition_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow perdition_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow perdition_t perdition_etc_t:file { getattr read };
|
|
Chris PeBenito |
17de1b |
files_search_etc(perdition_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(perdition_t,perdition_var_run_t,perdition_var_run_t)
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(perdition_t,perdition_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(perdition_t)
|
|
Chris PeBenito |
17de1b |
kernel_list_proc(perdition_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_proc_symlinks(perdition_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corenet_non_ipsec_sendrecv(perdition_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_generic_if(perdition_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_generic_if(perdition_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(perdition_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(perdition_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(perdition_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(perdition_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_all_nodes(perdition_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_pop_port(perdition_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_pop_server_packets(perdition_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(perdition_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(perdition_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(perdition_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(perdition_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(perdition_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(perdition_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(perdition_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(perdition_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(perdition_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(perdition_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(perdition_t)
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_search_sysadm_home_dirs(perdition_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_unallocated_ttys(perdition_t)
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_generic_ptys(perdition_t)
|
|
Chris PeBenito |
17de1b |
files_dontaudit_read_root_files(perdition_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(perdition_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(perdition_t)
|
|
Chris PeBenito |
17de1b |
')
|