Chris PeBenito 6ba4d9
Chris PeBenito 141cff
policy_module(dcc,1.0.1)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
# Declarations
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type cdcc_t;
Chris PeBenito 6ba4d9
type cdcc_exec_t;
Chris PeBenito 6ba4d9
domain_type(cdcc_t)
Chris PeBenito 6ba4d9
domain_entry_file(cdcc_t,cdcc_exec_t)
Chris PeBenito 6ba4d9
role system_r types cdcc_t;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type cdcc_tmp_t;
Chris PeBenito 6ba4d9
files_tmp_file(cdcc_tmp_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dcc_client_t;
Chris PeBenito 6ba4d9
type dcc_client_exec_t;
Chris PeBenito 6ba4d9
domain_type(dcc_client_t)
Chris PeBenito 6ba4d9
domain_entry_file(dcc_client_t,dcc_client_exec_t)
Chris PeBenito 6ba4d9
role system_r types dcc_client_t;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dcc_client_map_t;
Chris PeBenito 6ba4d9
files_type(dcc_client_map_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dcc_client_tmp_t;
Chris PeBenito 6ba4d9
files_tmp_file(dcc_client_tmp_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dcc_dbclean_t;
Chris PeBenito 6ba4d9
type dcc_dbclean_exec_t;
Chris PeBenito 6ba4d9
domain_type(dcc_dbclean_t)
Chris PeBenito 6ba4d9
domain_entry_file(dcc_dbclean_t,dcc_dbclean_exec_t)
Chris PeBenito 6ba4d9
role system_r types dcc_dbclean_t;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dcc_dbclean_tmp_t;
Chris PeBenito 6ba4d9
files_tmp_file(dcc_dbclean_tmp_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dcc_var_t;
Chris PeBenito 6ba4d9
files_type(dcc_var_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dcc_var_run_t;
Chris PeBenito 6ba4d9
files_type(dcc_var_run_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dccd_t;
Chris PeBenito 6ba4d9
type dccd_exec_t;
Chris PeBenito 6ba4d9
init_daemon_domain(dccd_t,dccd_exec_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dccd_tmp_t;
Chris PeBenito 6ba4d9
files_tmp_file(dccd_tmp_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dccd_var_run_t;
Chris PeBenito 6ba4d9
files_pid_file(dccd_var_run_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dccifd_t;
Chris PeBenito 6ba4d9
type dccifd_exec_t;
Chris PeBenito 6ba4d9
init_daemon_domain(dccifd_t,dccifd_exec_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dccifd_tmp_t;
Chris PeBenito 6ba4d9
files_tmp_file(dccifd_tmp_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dccifd_var_run_t;
Chris PeBenito 6ba4d9
files_pid_file(dccifd_var_run_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dccm_t;
Chris PeBenito 6ba4d9
type dccm_exec_t;
Chris PeBenito 6ba4d9
init_daemon_domain(dccm_t,dccm_exec_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dccm_tmp_t;
Chris PeBenito 6ba4d9
files_tmp_file(dccm_tmp_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
type dccm_var_run_t;
Chris PeBenito 6ba4d9
files_pid_file(dccm_var_run_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
# NOTE: DCC has writeable files in /etc/dcc that should probably be in
Chris PeBenito 6ba4d9
# /var/lib/dcc.  For now this policy supports both directories being
Chris PeBenito 6ba4d9
# writable.
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
# cjp: dccifd and dccm should be merged, as
Chris PeBenito 6ba4d9
# they have the same rules.
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
# dcc daemon controller local policy
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow cdcc_t self:capability setuid;
Chris PeBenito 6ba4d9
allow cdcc_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 6ba4d9
allow cdcc_t self:udp_socket create_socket_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow cdcc_t cdcc_tmp_t:dir manage_dir_perms;
Chris PeBenito 6ba4d9
allow cdcc_t cdcc_tmp_t:file create_file_perms;
Chris PeBenito 6ba4d9
files_tmp_filetrans(cdcc_t, cdcc_tmp_t, { file dir })
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow cdcc_t dcc_client_map_t:file rw_file_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
# Access files in /var/dcc. The map file can be updated
Chris PeBenito 6ba4d9
allow cdcc_t dcc_var_t:dir r_dir_perms;
Chris PeBenito 6ba4d9
allow cdcc_t dcc_var_t:file r_file_perms;
Chris PeBenito 6ba4d9
allow cdcc_t dcc_var_t:lnk_file { getattr read };
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
corenet_non_ipsec_sendrecv(cdcc_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_generic_if(cdcc_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_all_nodes(cdcc_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_all_ports(cdcc_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
files_read_etc_files(cdcc_t)
Chris PeBenito 6ba4d9
files_read_etc_runtime_files(cdcc_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
libs_use_ld_so(cdcc_t)
Chris PeBenito 6ba4d9
libs_use_shared_libs(cdcc_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
logging_send_syslog_msg(cdcc_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
miscfiles_read_localization(cdcc_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
sysnet_read_config(cdcc_t)
Chris PeBenito 6ba4d9
sysnet_dns_name_resolve(cdcc_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
optional_policy(`
Chris PeBenito 6ba4d9
	nscd_socket_use(cdcc_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
# dcc procmail interface local policy
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dcc_client_t self:capability setuid;
Chris PeBenito 6ba4d9
allow dcc_client_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 6ba4d9
allow dcc_client_t self:udp_socket create_socket_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dcc_client_t dcc_client_map_t:file rw_file_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dcc_client_t dcc_client_tmp_t:dir manage_dir_perms;
Chris PeBenito 6ba4d9
allow dcc_client_t dcc_client_tmp_t:file create_file_perms;
Chris PeBenito 6ba4d9
files_tmp_filetrans(dcc_client_t, dcc_client_tmp_t, { file dir })
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
# Access files in /var/dcc. The map file can be updated
Chris PeBenito 6ba4d9
allow dcc_client_t dcc_var_t:dir r_dir_perms;
Chris PeBenito 6ba4d9
allow dcc_client_t dcc_var_t:file r_file_perms;
Chris PeBenito 6ba4d9
allow dcc_client_t dcc_var_t:lnk_file { getattr read };
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
corenet_non_ipsec_sendrecv(dcc_client_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_generic_if(dcc_client_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_all_nodes(dcc_client_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_all_ports(dcc_client_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
files_read_etc_files(dcc_client_t)
Chris PeBenito 6ba4d9
files_read_etc_runtime_files(dcc_client_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
libs_use_ld_so(dcc_client_t)
Chris PeBenito 6ba4d9
libs_use_shared_libs(dcc_client_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
logging_send_syslog_msg(dcc_client_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
miscfiles_read_localization(dcc_client_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
sysnet_read_config(dcc_client_t)
Chris PeBenito 6ba4d9
sysnet_dns_name_resolve(dcc_client_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
optional_policy(`
Chris PeBenito 6ba4d9
	nscd_socket_use(dcc_client_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
# Database cleanup tool local policy
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dcc_dbclean_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 6ba4d9
allow dcc_dbclean_t self:udp_socket create_socket_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dcc_dbclean_t dcc_client_map_t:file rw_file_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dcc_dbclean_t dcc_dbclean_tmp_t:dir manage_dir_perms;
Chris PeBenito 6ba4d9
allow dcc_dbclean_t dcc_dbclean_tmp_t:file create_file_perms;
Chris PeBenito 6ba4d9
files_tmp_filetrans(dcc_dbclean_t, dcc_dbclean_tmp_t, { file dir })
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dcc_dbclean_t dcc_var_t:dir manage_dir_perms;
Chris PeBenito 6ba4d9
allow dcc_dbclean_t dcc_var_t:file manage_file_perms;
Chris PeBenito 6ba4d9
allow dcc_dbclean_t dcc_var_t:lnk_file create_lnk_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
kernel_read_system_state(dcc_dbclean_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
corenet_non_ipsec_sendrecv(dcc_dbclean_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_generic_if(dcc_dbclean_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_all_nodes(dcc_dbclean_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_all_ports(dcc_dbclean_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
files_read_etc_files(dcc_dbclean_t)
Chris PeBenito 6ba4d9
files_read_etc_runtime_files(dcc_dbclean_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
libs_use_ld_so(dcc_dbclean_t)
Chris PeBenito 6ba4d9
libs_use_shared_libs(dcc_dbclean_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
logging_send_syslog_msg(dcc_dbclean_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
miscfiles_read_localization(dcc_dbclean_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
sysnet_read_config(dcc_dbclean_t)
Chris PeBenito 6ba4d9
sysnet_dns_name_resolve(dcc_dbclean_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
optional_policy(`
Chris PeBenito 6ba4d9
	nscd_socket_use(dcc_dbclean_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
# Server daemon local policy
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccd_t self:capability net_admin;
Chris PeBenito 6ba4d9
dontaudit dccd_t self:capability sys_tty_config;
Chris PeBenito 6ba4d9
allow dccd_t self:process signal_perms;
Chris PeBenito 6ba4d9
allow dccd_t self:unix_stream_socket create_socket_perms;
Chris PeBenito 6ba4d9
allow dccd_t self:netlink_route_socket { bind create getattr nlmsg_read read write };
Chris PeBenito 6ba4d9
allow dccd_t self:udp_socket create_socket_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccd_t dcc_client_map_t:file rw_file_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
# Access files in /var/dcc. The map file can be updated
Chris PeBenito 6ba4d9
allow dccd_t dcc_var_t:dir r_dir_perms;
Chris PeBenito 6ba4d9
allow dccd_t dcc_var_t:file r_file_perms;
Chris PeBenito 6ba4d9
allow dccd_t dcc_var_t:lnk_file { getattr read };
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
# Runs the dbclean program
Chris PeBenito 6ba4d9
domain_auto_trans(dccd_t, dcc_dbclean_exec_t, dcc_dbclean_t)
Chris PeBenito 6ba4d9
corecmd_search_bin(dccd_t)
Chris PeBenito 6ba4d9
allow dcc_dbclean_t dccd_t:fd use;
Chris PeBenito 6ba4d9
allow dcc_dbclean_t dccd_t:fifo_file rw_file_perms;
Chris PeBenito 6ba4d9
allow dcc_dbclean_t dccd_t:process sigchld;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
# Updating dcc_db, flod, ...
Chris PeBenito 6ba4d9
allow dccd_t dcc_var_t:dir manage_dir_perms;
Chris PeBenito 6ba4d9
allow dccd_t dcc_var_t:file manage_file_perms;
Chris PeBenito 6ba4d9
allow dccd_t dcc_var_t:lnk_file create_lnk_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccd_t dccd_tmp_t:dir manage_dir_perms;
Chris PeBenito 6ba4d9
allow dccd_t dccd_tmp_t:file create_file_perms;
Chris PeBenito 6ba4d9
files_tmp_filetrans(dccd_t, dccd_tmp_t, { file dir })
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccd_t dccd_var_run_t:file create_file_perms;
Chris PeBenito 6ba4d9
allow dccd_t dccd_var_run_t:dir rw_dir_perms;
Chris PeBenito 6ba4d9
files_pid_filetrans(dccd_t,dccd_var_run_t,file)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
kernel_read_system_state(dccd_t)
Chris PeBenito 6ba4d9
kernel_read_kernel_sysctls(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
corenet_non_ipsec_sendrecv(dccd_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_generic_if(dccd_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_all_nodes(dccd_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_all_ports(dccd_t)
Chris PeBenito 6ba4d9
corenet_udp_bind_all_nodes(dccd_t)
Chris PeBenito 6ba4d9
corenet_udp_bind_dcc_port(dccd_t)
Chris PeBenito 141cff
corenet_sendrecv_dcc_server_packets(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
dev_read_sysfs(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
domain_use_interactive_fds(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
files_read_etc_files(dccd_t)
Chris PeBenito 6ba4d9
files_read_etc_runtime_files(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
fs_getattr_all_fs(dccd_t)
Chris PeBenito 6ba4d9
fs_search_auto_mountpoints(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
term_dontaudit_use_console(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
init_use_fds(dccd_t)
Chris PeBenito 6ba4d9
init_use_script_ptys(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
libs_use_ld_so(dccd_t)
Chris PeBenito 6ba4d9
libs_use_shared_libs(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
logging_send_syslog_msg(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
miscfiles_read_localization(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
sysnet_read_config(dccd_t)
Chris PeBenito 6ba4d9
sysnet_dns_name_resolve(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
userdom_dontaudit_use_unpriv_user_fds(dccd_t)
Chris PeBenito 6ba4d9
userdom_dontaudit_search_sysadm_home_dirs(dccd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
ifdef(`targeted_policy',`
Chris PeBenito 6ba4d9
	term_dontaudit_use_unallocated_ttys(dccd_t)
Chris PeBenito 6ba4d9
	term_dontaudit_use_generic_ptys(dccd_t)
Chris PeBenito 6ba4d9
	files_dontaudit_read_root_files(dccd_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
optional_policy(`
Chris PeBenito 6ba4d9
	nscd_socket_use(dccd_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
optional_policy(`
Chris PeBenito 6ba4d9
	seutil_sigchld_newrole(dccd_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
optional_policy(`
Chris PeBenito 6ba4d9
	udev_read_db(dccd_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
# Spamassassin and general MTA persistent client local policy
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
dontaudit dccifd_t self:capability sys_tty_config;
Chris PeBenito 6ba4d9
allow dccifd_t self:process signal_perms;
Chris PeBenito 6ba4d9
allow dccifd_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 6ba4d9
allow dccifd_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 6ba4d9
allow dccifd_t self:udp_socket create_socket_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccifd_t dcc_client_map_t:file rw_file_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
# Updating dcc_db, flod, ...
Chris PeBenito 6ba4d9
allow dccifd_t dcc_var_t:dir manage_dir_perms;
Chris PeBenito 6ba4d9
allow dccifd_t dcc_var_t:{ file sock_file fifo_file } manage_file_perms;
Chris PeBenito 6ba4d9
allow dccifd_t dcc_var_t:lnk_file create_lnk_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccifd_t dccifd_tmp_t:dir manage_dir_perms;
Chris PeBenito 6ba4d9
allow dccifd_t dccifd_tmp_t:file manage_file_perms;
Chris PeBenito 6ba4d9
files_tmp_filetrans(dccifd_t, dccifd_tmp_t, { file dir })
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccifd_t dccifd_var_run_t:file manage_file_perms;
Chris PeBenito 6ba4d9
allow dccifd_t dccifd_var_run_t:sock_file manage_file_perms;
Chris PeBenito 6ba4d9
allow dccifd_t dcc_var_t:dir rw_dir_perms;
Chris PeBenito 6ba4d9
type_transition dccifd_t dcc_var_t:{ file sock_file } dccifd_var_run_t;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccifd_t dccifd_var_run_t:file manage_file_perms;
Chris PeBenito 6ba4d9
allow dccifd_t dccifd_var_run_t:dir rw_dir_perms;
Chris PeBenito 6ba4d9
files_pid_filetrans(dccifd_t,dccifd_var_run_t,file)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
kernel_read_system_state(dccifd_t)
Chris PeBenito 6ba4d9
kernel_read_kernel_sysctls(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
corenet_non_ipsec_sendrecv(dccifd_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_generic_if(dccifd_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_all_nodes(dccifd_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_all_ports(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
dev_read_sysfs(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
domain_use_interactive_fds(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
files_read_etc_files(dccifd_t)
Chris PeBenito 6ba4d9
files_read_etc_runtime_files(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
fs_getattr_all_fs(dccifd_t)
Chris PeBenito 6ba4d9
fs_search_auto_mountpoints(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
term_dontaudit_use_console(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
init_use_fds(dccifd_t)
Chris PeBenito 6ba4d9
init_use_script_ptys(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
libs_use_ld_so(dccifd_t)
Chris PeBenito 6ba4d9
libs_use_shared_libs(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
logging_send_syslog_msg(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
miscfiles_read_localization(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
sysnet_read_config(dccifd_t)
Chris PeBenito 6ba4d9
sysnet_dns_name_resolve(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
userdom_dontaudit_use_unpriv_user_fds(dccifd_t)
Chris PeBenito 6ba4d9
userdom_dontaudit_search_sysadm_home_dirs(dccifd_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
ifdef(`targeted_policy',`
Chris PeBenito 6ba4d9
	term_dontaudit_use_unallocated_ttys(dccifd_t)
Chris PeBenito 6ba4d9
	term_dontaudit_use_generic_ptys(dccifd_t)
Chris PeBenito 6ba4d9
	files_dontaudit_read_root_files(dccifd_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
optional_policy(`
Chris PeBenito 6ba4d9
	nscd_socket_use(dccifd_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
optional_policy(`
Chris PeBenito 6ba4d9
	seutil_sigchld_newrole(dccifd_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
optional_policy(`
Chris PeBenito 6ba4d9
	udev_read_db(dccifd_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
########################################
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
# sendmail milter client local policy
Chris PeBenito 6ba4d9
#
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
dontaudit dccm_t self:capability sys_tty_config;
Chris PeBenito 6ba4d9
allow dccm_t self:process signal_perms;
Chris PeBenito 6ba4d9
allow dccm_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 6ba4d9
allow dccm_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 6ba4d9
allow dccm_t self:udp_socket create_socket_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccm_t dcc_client_map_t:file rw_file_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccm_t dcc_var_t:dir manage_dir_perms;
Chris PeBenito 6ba4d9
allow dccm_t dcc_var_t:{ file sock_file fifo_file } create_file_perms;
Chris PeBenito 6ba4d9
allow dccm_t dcc_var_t:lnk_file create_lnk_perms;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccm_t dccm_tmp_t:dir manage_dir_perms;
Chris PeBenito 6ba4d9
allow dccm_t dccm_tmp_t:file manage_file_perms;
Chris PeBenito 6ba4d9
files_tmp_filetrans(dccm_t, dccm_tmp_t, { file dir })
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccm_t dccm_var_run_t:file manage_file_perms;
Chris PeBenito 6ba4d9
allow dccm_t dccm_var_run_t:sock_file manage_file_perms;
Chris PeBenito 6ba4d9
allow dccm_t dcc_var_run_t:dir rw_dir_perms;
Chris PeBenito 6ba4d9
type_transition dccm_t dcc_var_run_t:{ file sock_file } dccm_var_run_t;
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
allow dccm_t dccm_var_run_t:file manage_file_perms;
Chris PeBenito 6ba4d9
allow dccm_t dccm_var_run_t:dir rw_dir_perms;
Chris PeBenito 6ba4d9
files_pid_filetrans(dccm_t,dccm_var_run_t,file)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
kernel_read_system_state(dccm_t)
Chris PeBenito 6ba4d9
kernel_read_kernel_sysctls(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
corenet_non_ipsec_sendrecv(dccm_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_generic_if(dccm_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_all_nodes(dccm_t)
Chris PeBenito 6ba4d9
corenet_udp_sendrecv_all_ports(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
dev_read_sysfs(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
domain_use_interactive_fds(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
files_read_etc_files(dccm_t)
Chris PeBenito 6ba4d9
files_read_etc_runtime_files(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
fs_getattr_all_fs(dccm_t)
Chris PeBenito 6ba4d9
fs_search_auto_mountpoints(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
term_dontaudit_use_console(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
init_use_fds(dccm_t)
Chris PeBenito 6ba4d9
init_use_script_ptys(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
libs_use_ld_so(dccm_t)
Chris PeBenito 6ba4d9
libs_use_shared_libs(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
logging_send_syslog_msg(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
miscfiles_read_localization(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
sysnet_read_config(dccm_t)
Chris PeBenito 6ba4d9
sysnet_dns_name_resolve(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
userdom_dontaudit_use_unpriv_user_fds(dccm_t)
Chris PeBenito 6ba4d9
userdom_dontaudit_search_sysadm_home_dirs(dccm_t)
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
ifdef(`targeted_policy',`
Chris PeBenito 6ba4d9
	term_dontaudit_use_unallocated_ttys(dccm_t)
Chris PeBenito 6ba4d9
	term_dontaudit_use_generic_ptys(dccm_t)
Chris PeBenito 6ba4d9
	files_dontaudit_read_root_files(dccm_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
optional_policy(`
Chris PeBenito 6ba4d9
	nscd_socket_use(dccm_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
optional_policy(`
Chris PeBenito 6ba4d9
	seutil_sigchld_newrole(dccm_t)
Chris PeBenito 6ba4d9
')
Chris PeBenito 6ba4d9
Chris PeBenito 6ba4d9
optional_policy(`
Chris PeBenito 6ba4d9
	udev_read_db(dccm_t)
Chris PeBenito 6ba4d9
')