|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
policy_module(perdition,1.0.0)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
########################################
|
|
Chris PeBenito |
0cc79f |
#
|
|
Chris PeBenito |
0cc79f |
# Declarations
|
|
Chris PeBenito |
0cc79f |
#
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
type perdition_t;
|
|
Chris PeBenito |
0cc79f |
type perdition_exec_t;
|
|
Chris PeBenito |
0cc79f |
init_daemon_domain(perdition_t,perdition_exec_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
type perdition_etc_t;
|
|
Chris PeBenito |
0cc79f |
files_config_file(perdition_etc_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
type perdition_var_run_t;
|
|
Chris PeBenito |
0cc79f |
files_pid_file(perdition_var_run_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
########################################
|
|
Chris PeBenito |
0cc79f |
#
|
|
Chris PeBenito |
0cc79f |
# Local policy
|
|
Chris PeBenito |
0cc79f |
#
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
allow perdition_t self:capability { setgid setuid };
|
|
Chris PeBenito |
0cc79f |
dontaudit perdition_t self:capability sys_tty_config;
|
|
Chris PeBenito |
0cc79f |
allow perdition_t self:process signal_perms;
|
|
Chris PeBenito |
0cc79f |
allow perdition_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
0cc79f |
allow perdition_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
allow perdition_t perdition_etc_t:file { getattr read };
|
|
Chris PeBenito |
0cc79f |
files_search_etc(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
allow perdition_t perdition_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
0cc79f |
allow perdition_t perdition_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
0cc79f |
files_pid_filetrans(perdition_t,perdition_var_run_t,file)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
kernel_read_kernel_sysctls(perdition_t)
|
|
Chris PeBenito |
0cc79f |
kernel_list_proc(perdition_t)
|
|
Chris PeBenito |
0cc79f |
kernel_read_proc_symlinks(perdition_t)
|
|
Chris PeBenito |
0cc79f |
kernel_tcp_recvfrom(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
corenet_non_ipsec_sendrecv(perdition_t)
|
|
Chris PeBenito |
0cc79f |
corenet_tcp_sendrecv_generic_if(perdition_t)
|
|
Chris PeBenito |
0cc79f |
corenet_udp_sendrecv_generic_if(perdition_t)
|
|
Chris PeBenito |
0cc79f |
corenet_raw_sendrecv_generic_if(perdition_t)
|
|
Chris PeBenito |
0cc79f |
corenet_tcp_sendrecv_all_nodes(perdition_t)
|
|
Chris PeBenito |
0cc79f |
corenet_udp_sendrecv_all_nodes(perdition_t)
|
|
Chris PeBenito |
0cc79f |
corenet_raw_sendrecv_all_nodes(perdition_t)
|
|
Chris PeBenito |
0cc79f |
corenet_tcp_sendrecv_all_ports(perdition_t)
|
|
Chris PeBenito |
0cc79f |
corenet_udp_sendrecv_all_ports(perdition_t)
|
|
Chris PeBenito |
0cc79f |
corenet_tcp_bind_all_nodes(perdition_t)
|
|
Chris PeBenito |
0cc79f |
corenet_udp_bind_all_nodes(perdition_t)
|
|
Chris PeBenito |
0cc79f |
corenet_tcp_bind_pop_port(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
dev_read_sysfs(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
domain_use_interactive_fds(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
fs_getattr_all_fs(perdition_t)
|
|
Chris PeBenito |
0cc79f |
fs_search_auto_mountpoints(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
files_read_etc_files(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
term_dontaudit_use_console(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
init_use_fds(perdition_t)
|
|
Chris PeBenito |
0cc79f |
init_use_script_ptys(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
libs_use_ld_so(perdition_t)
|
|
Chris PeBenito |
0cc79f |
libs_use_shared_libs(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
logging_send_syslog_msg(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
miscfiles_read_localization(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
sysnet_read_config(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
userdom_dontaudit_use_unpriv_user_fds(perdition_t)
|
|
Chris PeBenito |
0cc79f |
userdom_dontaudit_search_sysadm_home_dirs(perdition_t)
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
0cc79f |
term_dontaudit_use_unallocated_ttys(perdition_t)
|
|
Chris PeBenito |
0cc79f |
term_dontaudit_use_generic_ptys(perdition_t)
|
|
Chris PeBenito |
0cc79f |
files_dontaudit_read_root_files(perdition_t)
|
|
Chris PeBenito |
0cc79f |
')
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
optional_policy(`
|
|
Chris PeBenito |
0cc79f |
seutil_sigchld_newrole(perdition_t)
|
|
Chris PeBenito |
0cc79f |
')
|
|
Chris PeBenito |
0cc79f |
|
|
Chris PeBenito |
0cc79f |
optional_policy(`
|
|
Chris PeBenito |
0cc79f |
udev_read_db(perdition_t)
|
|
Chris PeBenito |
0cc79f |
')
|