Chris PeBenito 29af4c
policy_module(spamassassin, 2.3.0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 56e1b3
## <desc>
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## Allow user spamassassin clients to use the network.
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## </desc>
Chris PeBenito 0bfccd
gen_tunable(spamassassin_can_network, false)
Chris PeBenito 56e1b3
Chris PeBenito 56e1b3
## <desc>
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## Allow spamd to read/write user home directories.
Chris PeBenito 56e1b3
## 

Chris PeBenito 56e1b3
## </desc>
Chris PeBenito 0bfccd
gen_tunable(spamd_enable_home_dirs, true)
Chris PeBenito 56e1b3
Chris PeBenito 296273
type spamassassin_t;
Chris PeBenito 296273
type spamassassin_exec_t;
Chris PeBenito 296273
typealias spamassassin_t alias { user_spamassassin_t staff_spamassassin_t sysadm_spamassassin_t };
Chris PeBenito 296273
typealias spamassassin_t alias { auditadm_spamassassin_t secadm_spamassassin_t };
Chris PeBenito 296273
application_domain(spamassassin_t, spamassassin_exec_t)
Chris PeBenito 296273
ubac_constrained(spamassassin_t)
Chris PeBenito 296273
Chris PeBenito 296273
type spamassassin_home_t;
Chris PeBenito 296273
typealias spamassassin_home_t alias { user_spamassassin_home_t staff_spamassassin_home_t sysadm_spamassassin_home_t };
Chris PeBenito 296273
typealias spamassassin_home_t alias { auditadm_spamassassin_home_t secadm_spamassassin_home_t };
Chris PeBenito 296273
userdom_user_home_content(spamassassin_home_t)
Chris PeBenito 296273
files_poly_member(spamassassin_home_t)
Chris PeBenito 296273
Chris PeBenito 296273
type spamassassin_tmp_t;
Chris PeBenito 296273
typealias spamassassin_tmp_t alias { user_spamassassin_tmp_t staff_spamassassin_tmp_t sysadm_spamassassin_tmp_t };
Chris PeBenito 296273
typealias spamassassin_tmp_t alias { auditadm_spamassassin_tmp_t secadm_spamassassin_tmp_t };
Chris PeBenito 296273
files_tmp_file(spamassassin_tmp_t)
Chris PeBenito 296273
ubac_constrained(spamassassin_tmp_t)
Chris PeBenito 296273
Chris PeBenito 296273
type spamc_t;
Chris PeBenito 17de1b
type spamc_exec_t;
Chris PeBenito 296273
typealias spamc_t alias { user_spamc_t staff_spamc_t sysadm_spamc_t };
Chris PeBenito 296273
typealias spamc_t alias { auditadm_spamc_t secadm_spamc_t };
Chris PeBenito 296273
application_domain(spamc_t, spamc_exec_t)
Chris PeBenito 296273
ubac_constrained(spamc_t)
Chris PeBenito 296273
Chris PeBenito 296273
type spamc_tmp_t;
Chris PeBenito 296273
typealias spamc_tmp_t alias { user_spamc_tmp_t staff_spamc_tmp_t sysadm_spamc_tmp_t };
Chris PeBenito 296273
typealias spamc_tmp_t alias { auditadm_spamc_tmp_t secadm_spamc_tmp_t };
Chris PeBenito 296273
files_tmp_file(spamc_tmp_t)
Chris PeBenito 296273
ubac_constrained(spamc_tmp_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type spamd_t;
Chris PeBenito 17de1b
type spamd_exec_t;
Chris PeBenito 296273
init_daemon_domain(spamd_t, spamd_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type spamd_spool_t;
Chris PeBenito 17de1b
files_type(spamd_spool_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type spamd_tmp_t;
Chris PeBenito 17de1b
files_tmp_file(spamd_tmp_t)
Chris PeBenito 17de1b
Chris PeBenito 59bedc
# var/lib files
Chris PeBenito 59bedc
type spamd_var_lib_t;
Chris PeBenito 59bedc
files_type(spamd_var_lib_t)
Chris PeBenito 59bedc
Chris PeBenito 17de1b
type spamd_var_run_t;
Chris PeBenito 17de1b
files_pid_file(spamd_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 296273
##############################
Chris PeBenito 296273
#
Chris PeBenito 296273
# Standalone program local policy
Chris PeBenito 296273
#
Chris PeBenito 296273
Chris PeBenito 296273
allow spamassassin_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
Chris PeBenito 296273
allow spamassassin_t self:fd use;
Chris PeBenito 296273
allow spamassassin_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 296273
allow spamassassin_t self:sock_file read_sock_file_perms;
Chris PeBenito 296273
allow spamassassin_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 296273
allow spamassassin_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 296273
allow spamassassin_t self:unix_dgram_socket sendto;
Chris PeBenito 296273
allow spamassassin_t self:unix_stream_socket connectto;
Chris PeBenito 296273
allow spamassassin_t self:shm create_shm_perms;
Chris PeBenito 296273
allow spamassassin_t self:sem create_sem_perms;
Chris PeBenito 296273
allow spamassassin_t self:msgq create_msgq_perms;
Chris PeBenito 296273
allow spamassassin_t self:msg { send receive };
Chris PeBenito 296273
Chris PeBenito 296273
manage_dirs_pattern(spamassassin_t, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
manage_files_pattern(spamassassin_t, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
manage_lnk_files_pattern(spamassassin_t, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
manage_fifo_files_pattern(spamassassin_t, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
manage_sock_files_pattern(spamassassin_t, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
userdom_user_home_dir_filetrans(spamassassin_t, spamassassin_home_t, { dir file lnk_file sock_file fifo_file })
Chris PeBenito 296273
Chris PeBenito 296273
manage_dirs_pattern(spamassassin_t, spamassassin_tmp_t, spamassassin_tmp_t)
Chris PeBenito 296273
manage_files_pattern(spamassassin_t, spamassassin_tmp_t, spamassassin_tmp_t)
Chris PeBenito 296273
files_tmp_filetrans(spamassassin_t, spamassassin_tmp_t, { file dir })
Chris PeBenito 296273
Chris PeBenito 296273
manage_dirs_pattern(spamd_t, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
manage_files_pattern(spamd_t, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
manage_lnk_files_pattern(spamd_t, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
manage_fifo_files_pattern(spamd_t, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
manage_sock_files_pattern(spamd_t, spamassassin_home_t, spamassassin_home_t)
Chris PeBenito 296273
userdom_user_home_dir_filetrans(spamd_t, spamassassin_home_t, { dir file lnk_file sock_file fifo_file })
Chris PeBenito 296273
Chris PeBenito 296273
kernel_read_kernel_sysctls(spamassassin_t)
Chris PeBenito 296273
Chris PeBenito 296273
dev_read_urand(spamassassin_t)
Chris PeBenito 296273
Chris PeBenito 296273
fs_search_auto_mountpoints(spamassassin_t)
Chris PeBenito 296273
Chris PeBenito 296273
# this should probably be removed
Chris PeBenito 296273
corecmd_list_bin(spamassassin_t)
Chris PeBenito 296273
corecmd_read_bin_symlinks(spamassassin_t)
Chris PeBenito 296273
corecmd_read_bin_files(spamassassin_t)
Chris PeBenito 296273
corecmd_read_bin_pipes(spamassassin_t)
Chris PeBenito 296273
corecmd_read_bin_sockets(spamassassin_t)
Chris PeBenito 296273
Chris PeBenito 296273
domain_use_interactive_fds(spamassassin_t)
Chris PeBenito 296273
Chris PeBenito 296273
files_read_etc_files(spamassassin_t)
Chris PeBenito 296273
files_read_etc_runtime_files(spamassassin_t)
Chris PeBenito 296273
files_list_home(spamassassin_t)
Chris PeBenito 296273
files_read_usr_files(spamassassin_t)
Chris PeBenito 296273
files_dontaudit_search_var(spamassassin_t)
Chris PeBenito 296273
Chris PeBenito 296273
logging_send_syslog_msg(spamassassin_t)
Chris PeBenito 296273
Chris PeBenito 296273
miscfiles_read_localization(spamassassin_t)
Chris PeBenito 296273
Chris PeBenito 296273
# cjp: this could probably be removed
Chris PeBenito 296273
seutil_read_config(spamassassin_t)
Chris PeBenito 296273
Chris PeBenito 296273
sysnet_dns_name_resolve(spamassassin_t)
Chris PeBenito 296273
Chris PeBenito 296273
# set tunable if you have spamassassin do DNS lookups
Chris PeBenito 296273
tunable_policy(`spamassassin_can_network',`
Chris PeBenito 296273
	allow spamassassin_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 296273
	allow spamassassin_t self:udp_socket create_socket_perms;
Chris PeBenito 296273
Chris PeBenito 296273
	corenet_all_recvfrom_unlabeled(spamassassin_t)
Chris PeBenito 296273
	corenet_all_recvfrom_netlabel(spamassassin_t)
Chris PeBenito 296273
	corenet_tcp_sendrecv_generic_if(spamassassin_t)
Chris PeBenito 296273
	corenet_udp_sendrecv_generic_if(spamassassin_t)
Chris PeBenito c12621
	corenet_tcp_sendrecv_generic_node(spamassassin_t)
Chris PeBenito c12621
	corenet_udp_sendrecv_generic_node(spamassassin_t)
Chris PeBenito 296273
	corenet_tcp_sendrecv_all_ports(spamassassin_t)
Chris PeBenito 296273
	corenet_udp_sendrecv_all_ports(spamassassin_t)
Chris PeBenito 296273
	corenet_tcp_connect_all_ports(spamassassin_t)
Chris PeBenito 296273
	corenet_sendrecv_all_client_packets(spamassassin_t)
Chris PeBenito 296273
Chris PeBenito 296273
	sysnet_read_config(spamassassin_t)
Chris PeBenito 296273
')
Chris PeBenito 296273
Chris PeBenito 296273
tunable_policy(`spamd_enable_home_dirs',`
Chris PeBenito 296273
	userdom_manage_user_home_content_dirs(spamd_t)
Chris PeBenito 296273
	userdom_manage_user_home_content_files(spamd_t)
Chris PeBenito 296273
	userdom_manage_user_home_content_symlinks(spamd_t)
Chris PeBenito 296273
')
Chris PeBenito 296273
Chris PeBenito 296273
tunable_policy(`use_nfs_home_dirs',`
Chris PeBenito 296273
	fs_manage_nfs_dirs(spamassassin_t)
Chris PeBenito 296273
	fs_manage_nfs_files(spamassassin_t)
Chris PeBenito 296273
	fs_manage_nfs_symlinks(spamassassin_t)
Chris PeBenito 296273
')
Chris PeBenito 296273
Chris PeBenito 296273
tunable_policy(`use_samba_home_dirs',`
Chris PeBenito 296273
	fs_manage_cifs_dirs(spamassassin_t)
Chris PeBenito 296273
	fs_manage_cifs_files(spamassassin_t)
Chris PeBenito 296273
	fs_manage_cifs_symlinks(spamassassin_t)
Chris PeBenito 296273
')
Chris PeBenito 296273
Chris PeBenito 296273
optional_policy(`
Chris PeBenito 296273
	# Write pid file and socket in ~/.evolution/cache/tmp
Chris PeBenito 296273
	evolution_home_filetrans(spamd_t, spamd_tmp_t, { file sock_file })
Chris PeBenito 296273
')
Chris PeBenito 296273
Chris PeBenito 296273
optional_policy(`
Chris PeBenito 296273
	tunable_policy(`spamassassin_can_network && allow_ypbind',`
Chris PeBenito 296273
		nis_use_ypbind_uncond(spamassassin_t)
Chris PeBenito 296273
	')
Chris PeBenito 296273
')
Chris PeBenito 296273
Chris PeBenito 296273
optional_policy(`
Chris PeBenito 296273
	mta_read_config(spamassassin_t)
Chris PeBenito 296273
	sendmail_stub(spamassassin_t)
Chris PeBenito 296273
')
Chris PeBenito 296273
Chris PeBenito 296273
########################################
Chris PeBenito 296273
#
Chris PeBenito 296273
# Client local policy
Chris PeBenito 296273
#
Chris PeBenito 296273
Chris PeBenito 296273
allow spamc_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
Chris PeBenito 296273
allow spamc_t self:fd use;
Chris PeBenito 296273
allow spamc_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 296273
allow spamc_t self:sock_file read_sock_file_perms;
Chris PeBenito 296273
allow spamc_t self:shm create_shm_perms;
Chris PeBenito 296273
allow spamc_t self:sem create_sem_perms;
Chris PeBenito 296273
allow spamc_t self:msgq create_msgq_perms;
Chris PeBenito 296273
allow spamc_t self:msg { send receive };
Chris PeBenito 296273
allow spamc_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 296273
allow spamc_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 296273
allow spamc_t self:unix_dgram_socket sendto;
Chris PeBenito 296273
allow spamc_t self:unix_stream_socket connectto;
Chris PeBenito 296273
allow spamc_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 296273
allow spamc_t self:udp_socket create_socket_perms;
Chris PeBenito 296273
Chris PeBenito 296273
manage_dirs_pattern(spamc_t, spamc_tmp_t, spamc_tmp_t)
Chris PeBenito 296273
manage_files_pattern(spamc_t, spamc_tmp_t, spamc_tmp_t)
Chris PeBenito 296273
files_tmp_filetrans(spamc_t, spamc_tmp_t, { file dir })
Chris PeBenito 296273
Chris PeBenito 296273
# Allow connecting to a local spamd
Chris PeBenito 296273
allow spamc_t spamd_t:unix_stream_socket connectto;
Chris PeBenito 296273
allow spamc_t spamd_tmp_t:sock_file rw_sock_file_perms;
Chris PeBenito 296273
Chris PeBenito 296273
kernel_read_kernel_sysctls(spamc_t)
Chris PeBenito 296273
Chris PeBenito 296273
corenet_all_recvfrom_unlabeled(spamc_t)
Chris PeBenito 296273
corenet_all_recvfrom_netlabel(spamc_t)
Chris PeBenito 296273
corenet_tcp_sendrecv_generic_if(spamc_t)
Chris PeBenito 296273
corenet_udp_sendrecv_generic_if(spamc_t)
Chris PeBenito c12621
corenet_tcp_sendrecv_generic_node(spamc_t)
Chris PeBenito c12621
corenet_udp_sendrecv_generic_node(spamc_t)
Chris PeBenito 296273
corenet_tcp_sendrecv_all_ports(spamc_t)
Chris PeBenito 296273
corenet_udp_sendrecv_all_ports(spamc_t)
Chris PeBenito 296273
corenet_tcp_connect_all_ports(spamc_t)
Chris PeBenito 296273
corenet_sendrecv_all_client_packets(spamc_t)
Chris PeBenito 296273
Chris PeBenito 296273
fs_search_auto_mountpoints(spamc_t)
Chris PeBenito 296273
Chris PeBenito 296273
# cjp: these should probably be removed:
Chris PeBenito 296273
corecmd_list_bin(spamc_t)
Chris PeBenito 296273
corecmd_read_bin_symlinks(spamc_t)
Chris PeBenito 296273
corecmd_read_bin_files(spamc_t)
Chris PeBenito 296273
corecmd_read_bin_pipes(spamc_t)
Chris PeBenito 296273
corecmd_read_bin_sockets(spamc_t)
Chris PeBenito 296273
Chris PeBenito 296273
domain_use_interactive_fds(spamc_t)
Chris PeBenito 296273
Chris PeBenito 296273
files_read_etc_files(spamc_t)
Chris PeBenito 296273
files_read_etc_runtime_files(spamc_t)
Chris PeBenito 296273
files_read_usr_files(spamc_t)
Chris PeBenito 296273
files_dontaudit_search_var(spamc_t)
Chris PeBenito 296273
# cjp: this may be removable:
Chris PeBenito 296273
files_list_home(spamc_t)
Chris PeBenito 296273
Chris PeBenito 296273
logging_send_syslog_msg(spamc_t)
Chris PeBenito 296273
Chris PeBenito 296273
miscfiles_read_localization(spamc_t)
Chris PeBenito 296273
Chris PeBenito 296273
# cjp: this should probably be removed:
Chris PeBenito 296273
seutil_read_config(spamc_t)
Chris PeBenito 296273
Chris PeBenito 296273
sysnet_read_config(spamc_t)
Chris PeBenito 296273
Chris PeBenito 296273
optional_policy(`
Chris PeBenito 296273
	# Allow connection to spamd socket above
Chris PeBenito 296273
	evolution_stream_connect(spamc_t)
Chris PeBenito 296273
')
Chris PeBenito 296273
Chris PeBenito 296273
optional_policy(`
Chris PeBenito 0cf1d5
	# Needed for pyzor/razor called from spamd
Chris PeBenito 0cf1d5
	milter_manage_spamass_state(spamc_t)
Chris PeBenito 0cf1d5
')
Chris PeBenito 0cf1d5
Chris PeBenito 0cf1d5
optional_policy(`
Chris PeBenito 296273
	nis_use_ypbind(spamc_t)
Chris PeBenito 296273
')
Chris PeBenito 296273
Chris PeBenito 296273
optional_policy(`
Chris PeBenito 296273
	nscd_socket_use(spamc_t)
Chris PeBenito 296273
')
Chris PeBenito 296273
Chris PeBenito 296273
optional_policy(`
Chris PeBenito 296273
	mta_read_config(spamc_t)
Chris PeBenito 296273
	sendmail_stub(spamc_t)
Chris PeBenito 296273
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 296273
# Server local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# Spamassassin, when run as root and using per-user config files,
Chris PeBenito 17de1b
# setuids to the user running spamc.  Comment this if you are not
Chris PeBenito 17de1b
# using this ability.
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow spamd_t self:capability { setuid setgid dac_override sys_tty_config };
Chris PeBenito 17de1b
dontaudit spamd_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow spamd_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
Chris PeBenito 17de1b
allow spamd_t self:fd use;
Chris PeBenito c0868a
allow spamd_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito c0868a
allow spamd_t self:sock_file read_sock_file_perms;
Chris PeBenito 17de1b
allow spamd_t self:shm create_shm_perms;
Chris PeBenito 17de1b
allow spamd_t self:sem create_sem_perms;
Chris PeBenito 17de1b
allow spamd_t self:msgq create_msgq_perms;
Chris PeBenito 17de1b
allow spamd_t self:msg { send receive };
Chris PeBenito 17de1b
allow spamd_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 17de1b
allow spamd_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 17de1b
allow spamd_t self:unix_dgram_socket sendto;
Chris PeBenito 17de1b
allow spamd_t self:unix_stream_socket connectto;
Chris PeBenito 17de1b
allow spamd_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 17de1b
allow spamd_t self:udp_socket create_socket_perms;
Chris PeBenito d9845a
allow spamd_t self:netlink_route_socket r_netlink_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
manage_dirs_pattern(spamd_t, spamd_spool_t, spamd_spool_t)
Chris PeBenito 0bfccd
manage_files_pattern(spamd_t, spamd_spool_t, spamd_spool_t)
Chris PeBenito 0bfccd
files_spool_filetrans(spamd_t, spamd_spool_t, { file dir })
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
manage_dirs_pattern(spamd_t, spamd_tmp_t, spamd_tmp_t)
Chris PeBenito 0bfccd
manage_files_pattern(spamd_t, spamd_tmp_t, spamd_tmp_t)
Chris PeBenito 17de1b
files_tmp_filetrans(spamd_t, spamd_tmp_t, { file dir })
Chris PeBenito 17de1b
Chris PeBenito 59bedc
# var/lib files for spamd
Chris PeBenito 59bedc
allow spamd_t spamd_var_lib_t:dir list_dir_perms;
Chris PeBenito 0bfccd
read_files_pattern(spamd_t, spamd_var_lib_t, spamd_var_lib_t)
Chris PeBenito 59bedc
Chris PeBenito 72f82c
manage_dirs_pattern(spamd_t, spamd_var_run_t, spamd_var_run_t)
Chris PeBenito 72f82c
manage_files_pattern(spamd_t, spamd_var_run_t, spamd_var_run_t)
Chris PeBenito 72f82c
files_pid_filetrans(spamd_t, spamd_var_run_t, { dir file })
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_all_sysctls(spamd_t)
Chris PeBenito 17de1b
kernel_read_system_state(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(spamd_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(spamd_t)
Chris PeBenito 668b30
corenet_tcp_sendrecv_generic_if(spamd_t)
Chris PeBenito 668b30
corenet_udp_sendrecv_generic_if(spamd_t)
Chris PeBenito c12621
corenet_tcp_sendrecv_generic_node(spamd_t)
Chris PeBenito c12621
corenet_udp_sendrecv_generic_node(spamd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_ports(spamd_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_ports(spamd_t)
Chris PeBenito c12621
corenet_tcp_bind_generic_node(spamd_t)
Chris PeBenito 17de1b
corenet_tcp_bind_spamd_port(spamd_t)
Chris PeBenito 17de1b
corenet_tcp_connect_razor_port(spamd_t)
Chris PeBenito 6649ae
corenet_tcp_connect_smtp_port(spamd_t)
Chris PeBenito 17de1b
corenet_sendrecv_razor_client_packets(spamd_t)
Chris PeBenito 17de1b
corenet_sendrecv_spamd_server_packets(spamd_t)
Chris PeBenito 17de1b
# spamassassin 3.1 needs this for its
Chris PeBenito 17de1b
# DnsResolver.pm module which binds to
Chris PeBenito 17de1b
# random ports >= 1024.
Chris PeBenito c12621
corenet_udp_bind_generic_node(spamd_t)
Chris PeBenito 17de1b
corenet_udp_bind_generic_port(spamd_t)
Chris PeBenito 17de1b
corenet_udp_bind_imaze_port(spamd_t)
Chris PeBenito d6d16b
corenet_dontaudit_udp_bind_all_ports(spamd_t)
Chris PeBenito 17de1b
corenet_sendrecv_imaze_server_packets(spamd_t)
Chris PeBenito 17de1b
corenet_sendrecv_generic_server_packets(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(spamd_t)
Chris PeBenito 17de1b
dev_read_urand(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(spamd_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
auth_dontaudit_read_shadow(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
corecmd_exec_bin(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_usr_files(spamd_t)
Chris PeBenito 17de1b
files_read_etc_files(spamd_t)
Chris PeBenito 17de1b
files_read_etc_runtime_files(spamd_t)
Chris PeBenito 6b19be
# /var/lib/spamassin
Chris PeBenito 6b19be
files_read_var_lib_files(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
init_dontaudit_rw_utmp(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
sysnet_read_config(spamd_t)
Chris PeBenito 17de1b
sysnet_use_ldap(spamd_t)
Chris PeBenito 17de1b
sysnet_dns_name_resolve(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_use_unpriv_users_fds(spamd_t)
Chris PeBenito 296273
userdom_search_user_home_dirs(spamd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
tunable_policy(`use_nfs_home_dirs',`
Chris PeBenito 17de1b
	fs_manage_nfs_files(spamd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
tunable_policy(`use_samba_home_dirs',`
Chris PeBenito 17de1b
	fs_manage_cifs_files(spamd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	amavis_manage_lib_files(spamd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 0bfccd
	cron_system_entry(spamd_t, spamd_exec_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 0bfccd
	daemontools_service_domain(spamd_t, spamd_exec_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	dcc_domtrans_client(spamd_t)
Chris PeBenito 17de1b
	dcc_stream_connect_dccifd(spamd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 0cf1d5
	milter_manage_spamass_state(spamd_t)
Chris PeBenito 0cf1d5
')
Chris PeBenito 0cf1d5
Chris PeBenito 0cf1d5
optional_policy(`
Chris PeBenito 87a946
	corenet_tcp_connect_mysqld_port(spamd_t)
Chris PeBenito 87a946
	corenet_sendrecv_mysqld_client_packets(spamd_t)
Chris PeBenito 87a946
Chris PeBenito 6649ae
	mysql_search_db(spamd_t)
Chris PeBenito 6649ae
	mysql_stream_connect(spamd_t)
Chris PeBenito 6649ae
')
Chris PeBenito 6649ae
Chris PeBenito 6649ae
optional_policy(`
Chris PeBenito 17de1b
	nis_use_ypbind(spamd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito a5e213
	postfix_read_config(spamd_t)
Chris PeBenito a5e213
')
Chris PeBenito a5e213
Chris PeBenito a5e213
optional_policy(`
Chris PeBenito 87a946
	corenet_tcp_connect_postgresql_port(spamd_t)
Chris PeBenito 87a946
	corenet_sendrecv_postgresql_client_packets(spamd_t)
Chris PeBenito 87a946
Chris PeBenito 17de1b
	postgresql_stream_connect(spamd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	pyzor_domtrans(spamd_t)
Chris PeBenito b5a6c8
	pyzor_signal(spamd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	razor_domtrans(spamd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(spamd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	sendmail_stub(spamd_t)
Chris PeBenito 17de1b
	mta_read_config(spamd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(spamd_t)
Chris PeBenito 17de1b
')