|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
116c1d |
policy_module(ircd,1.3.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type ircd_t;
|
|
Chris PeBenito |
17de1b |
type ircd_exec_t;
|
|
Chris PeBenito |
17de1b |
init_daemon_domain(ircd_t,ircd_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type ircd_etc_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(ircd_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type ircd_log_t;
|
|
Chris PeBenito |
17de1b |
logging_log_file(ircd_log_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type ircd_var_lib_t;
|
|
Chris PeBenito |
17de1b |
files_type(ircd_var_lib_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type ircd_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(ircd_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 |
dontaudit ircd_t self:capability sys_tty_config;
|
|
Chris PeBenito |
17de1b |
allow ircd_t self:process signal_perms;
|
|
Chris PeBenito |
17de1b |
allow ircd_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow ircd_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
read_files_pattern(ircd_t,ircd_etc_t,ircd_etc_t)
|
|
Chris PeBenito |
c0868a |
read_lnk_files_pattern(ircd_t,ircd_etc_t,ircd_etc_t)
|
|
Chris PeBenito |
17de1b |
files_search_etc(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(ircd_t,ircd_log_t,ircd_log_t)
|
|
Chris PeBenito |
17de1b |
logging_log_filetrans(ircd_t,ircd_log_t,{ file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(ircd_t,ircd_var_lib_t,ircd_var_lib_t)
|
|
Chris PeBenito |
17de1b |
files_var_lib_filetrans(ircd_t,ircd_var_lib_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
manage_files_pattern(ircd_t,ircd_var_run_t,ircd_var_run_t)
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans(ircd_t,ircd_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(ircd_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8021cb |
corecmd_search_bin(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(ircd_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(ircd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_generic_if(ircd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_generic_if(ircd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_nodes(ircd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_nodes(ircd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(ircd_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(ircd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_all_nodes(ircd_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_bind_ircd_port(ircd_t)
|
|
Chris PeBenito |
17de1b |
corenet_sendrecv_ircd_server_packets(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_read_sysfs(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(ircd_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(ircd_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(ircd_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(ircd_t)
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_search_sysadm_home_dirs(ircd_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_unallocated_ttys(ircd_t)
|
|
Chris PeBenito |
17de1b |
term_dontaudit_use_generic_ptys(ircd_t)
|
|
Chris PeBenito |
17de1b |
files_dontaudit_read_root_files(ircd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(ircd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(ircd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_read_db(ircd_t)
|
|
Chris PeBenito |
17de1b |
')
|