Chris PeBenito 17de1b
Chris PeBenito 465510
policy_module(procmail,1.2.5)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type procmail_t;
Chris PeBenito 17de1b
type procmail_exec_t;
Chris PeBenito 17de1b
domain_type(procmail_t)
Chris PeBenito 17de1b
domain_entry_file(procmail_t,procmail_exec_t)
Chris PeBenito 17de1b
role system_r types procmail_t;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow procmail_t self:capability { sys_nice chown setuid setgid dac_override };
Chris PeBenito 17de1b
allow procmail_t self:process { setsched signal };
Chris PeBenito 17de1b
allow procmail_t self:fifo_file rw_file_perms;
Chris PeBenito 17de1b
allow procmail_t self:unix_stream_socket create_socket_perms;
Chris PeBenito 17de1b
allow procmail_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 17de1b
allow procmail_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 17de1b
allow procmail_t self:udp_socket create_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_system_state(procmail_t)
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
corenet_non_ipsec_sendrecv(procmail_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_if(procmail_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_if(procmail_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_nodes(procmail_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_nodes(procmail_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_ports(procmail_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_ports(procmail_t)
Chris PeBenito 465510
corenet_udp_bind_all_nodes(procmail_t)
Chris PeBenito 17de1b
corenet_tcp_connect_spamd_port(procmail_t)
Chris PeBenito 17de1b
corenet_sendrecv_spamd_client_packets(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_urand(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_xattr_fs(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
auth_use_nsswitch(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
corecmd_exec_bin(procmail_t)
Chris PeBenito 17de1b
corecmd_exec_shell(procmail_t)
Chris PeBenito 17de1b
corecmd_dontaudit_search_sbin(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(procmail_t)
Chris PeBenito 17de1b
files_read_etc_runtime_files(procmail_t)
Chris PeBenito 17de1b
files_search_pids(procmail_t)
Chris PeBenito 17de1b
# for spamassasin
Chris PeBenito 17de1b
files_read_usr_files(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(procmail_t)
Chris PeBenito 17de1b
libs_use_shared_libs(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# only works until we define a different type for maildir
Chris PeBenito 17de1b
userdom_priveleged_home_dir_manager(procmail_t)
Chris PeBenito 17de1b
# Do not audit attempts to access /root.
Chris PeBenito 17de1b
userdom_dontaudit_search_sysadm_home_dirs(procmail_t)
Chris PeBenito 17de1b
userdom_dontaudit_search_staff_home_dirs(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
mta_manage_spool(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
ifdef(`hide_broken_symptoms',`
Chris PeBenito 17de1b
	mta_dontaudit_rw_queue(procmail_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
ifdef(`targeted_policy', `
Chris PeBenito 17de1b
	corenet_udp_bind_generic_port(procmail_t)
Chris PeBenito 17de1b
	files_getattr_tmp_dirs(procmail_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	clamav_domtrans_clamscan(procmail_t)
Chris PeBenito 17de1b
	clamav_search_lib(procmail_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	logging_send_syslog_msg(procmail_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	nscd_socket_use(procmail_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	# for a bug in the postfix local program
Chris PeBenito 17de1b
	postfix_dontaudit_rw_local_tcp_sockets(procmail_t)
Chris PeBenito 17de1b
	postfix_dontaudit_use_fds(procmail_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	pyzor_domtrans(procmail_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	mta_read_config(procmail_t)
Chris PeBenito 17de1b
	sendmail_domtrans(procmail_t)
Chris PeBenito 17de1b
	sendmail_rw_tcp_sockets(procmail_t)
Chris PeBenito 17de1b
	sendmail_rw_unix_stream_sockets(procmail_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	corenet_udp_bind_generic_port(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_getattr_tmp_dirs(procmail_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	spamassassin_exec(procmail_t)
Chris PeBenito 17de1b
	spamassassin_exec_client(procmail_t)
Chris PeBenito 17de1b
')