|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
141cff |
policy_module(ircd,1.0.2)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
########################################
|
|
Chris PeBenito |
050f36 |
#
|
|
Chris PeBenito |
050f36 |
# Declarations
|
|
Chris PeBenito |
050f36 |
#
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
type ircd_t;
|
|
Chris PeBenito |
050f36 |
type ircd_exec_t;
|
|
Chris PeBenito |
050f36 |
init_daemon_domain(ircd_t,ircd_exec_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
type ircd_etc_t;
|
|
Chris PeBenito |
050f36 |
files_config_file(ircd_etc_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
type ircd_log_t;
|
|
Chris PeBenito |
050f36 |
logging_log_file(ircd_log_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
type ircd_var_lib_t;
|
|
Chris PeBenito |
050f36 |
files_type(ircd_var_lib_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
type ircd_var_run_t;
|
|
Chris PeBenito |
050f36 |
files_pid_file(ircd_var_run_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
########################################
|
|
Chris PeBenito |
050f36 |
#
|
|
Chris PeBenito |
050f36 |
# Local policy
|
|
Chris PeBenito |
050f36 |
#
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
dontaudit ircd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
050f36 |
allow ircd_t self:process signal_perms;
|
|
Chris PeBenito |
050f36 |
allow ircd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
050f36 |
allow ircd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
allow ircd_t ircd_etc_t:file r_file_perms;
|
|
Chris PeBenito |
050f36 |
allow ircd_t ircd_etc_t:dir r_dir_perms;
|
|
Chris PeBenito |
050f36 |
allow ircd_t ircd_etc_t:lnk_file { getattr read };
|
|
Chris PeBenito |
050f36 |
files_search_etc(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
allow ircd_t ircd_log_t:file create_file_perms;
|
|
Chris PeBenito |
050f36 |
allow ircd_t ircd_log_t:dir rw_dir_perms;
|
|
Chris PeBenito |
050f36 |
logging_log_filetrans(ircd_t,ircd_log_t,{ file dir })
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
allow ircd_t ircd_var_lib_t:file create_file_perms;
|
|
Chris PeBenito |
050f36 |
allow ircd_t ircd_var_lib_t:dir rw_dir_perms;
|
|
Chris PeBenito |
050f36 |
files_var_lib_filetrans(ircd_t,ircd_var_lib_t,file)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
allow ircd_t ircd_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
050f36 |
allow ircd_t ircd_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
050f36 |
files_pid_filetrans(ircd_t,ircd_var_run_t,file)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
kernel_read_system_state(ircd_t)
|
|
Chris PeBenito |
050f36 |
kernel_read_kernel_sysctls(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
corecmd_search_sbin(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
b516e8 |
corenet_non_ipsec_sendrecv(ircd_t)
|
|
Chris PeBenito |
050f36 |
corenet_tcp_sendrecv_generic_if(ircd_t)
|
|
Chris PeBenito |
050f36 |
corenet_udp_sendrecv_generic_if(ircd_t)
|
|
Chris PeBenito |
050f36 |
corenet_tcp_sendrecv_all_nodes(ircd_t)
|
|
Chris PeBenito |
050f36 |
corenet_udp_sendrecv_all_nodes(ircd_t)
|
|
Chris PeBenito |
050f36 |
corenet_tcp_sendrecv_all_ports(ircd_t)
|
|
Chris PeBenito |
050f36 |
corenet_udp_sendrecv_all_ports(ircd_t)
|
|
Chris PeBenito |
050f36 |
corenet_tcp_bind_all_nodes(ircd_t)
|
|
Chris PeBenito |
050f36 |
corenet_tcp_bind_ircd_port(ircd_t)
|
|
Chris PeBenito |
141cff |
corenet_sendrecv_ircd_server_packets(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
dev_read_sysfs(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
domain_use_interactive_fds(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
files_read_etc_files(ircd_t)
|
|
Chris PeBenito |
050f36 |
files_read_etc_runtime_files(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
fs_getattr_all_fs(ircd_t)
|
|
Chris PeBenito |
050f36 |
fs_search_auto_mountpoints(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
term_dontaudit_use_console(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
init_use_fds(ircd_t)
|
|
Chris PeBenito |
050f36 |
init_use_script_ptys(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
libs_use_ld_so(ircd_t)
|
|
Chris PeBenito |
050f36 |
libs_use_shared_libs(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
logging_send_syslog_msg(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
miscfiles_read_localization(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
sysnet_read_config(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
userdom_dontaudit_use_unpriv_user_fds(ircd_t)
|
|
Chris PeBenito |
050f36 |
userdom_dontaudit_search_sysadm_home_dirs(ircd_t)
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
050f36 |
term_dontaudit_use_unallocated_ttys(ircd_t)
|
|
Chris PeBenito |
050f36 |
term_dontaudit_use_generic_ptys(ircd_t)
|
|
Chris PeBenito |
050f36 |
files_dontaudit_read_root_files(ircd_t)
|
|
Chris PeBenito |
050f36 |
')
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
optional_policy(`
|
|
Chris PeBenito |
050f36 |
nis_use_ypbind(ircd_t)
|
|
Chris PeBenito |
050f36 |
')
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
optional_policy(`
|
|
Chris PeBenito |
050f36 |
seutil_sigchld_newrole(ircd_t)
|
|
Chris PeBenito |
050f36 |
')
|
|
Chris PeBenito |
050f36 |
|
|
Chris PeBenito |
050f36 |
optional_policy(`
|
|
Chris PeBenito |
050f36 |
udev_read_db(ircd_t)
|
|
Chris PeBenito |
050f36 |
')
|