Chris PeBenito a089b6
Chris PeBenito a089b6
policy_module(fetchmail,1.0.0)
Chris PeBenito a089b6
Chris PeBenito a089b6
########################################
Chris PeBenito a089b6
#
Chris PeBenito a089b6
# Declarations
Chris PeBenito a089b6
#
Chris PeBenito a089b6
type fetchmail_t;
Chris PeBenito a089b6
type fetchmail_exec_t;
Chris PeBenito a089b6
init_daemon_domain(fetchmail_t,fetchmail_exec_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
type fetchmail_var_run_t;
Chris PeBenito a089b6
files_pid_file(fetchmail_var_run_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
type fetchmail_etc_t;
Chris PeBenito a089b6
files_type(fetchmail_etc_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
type fetchmail_uidl_cache_t;
Chris PeBenito a089b6
files_type(fetchmail_uidl_cache_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
########################################
Chris PeBenito a089b6
#
Chris PeBenito a089b6
# Local policy
Chris PeBenito a089b6
#
Chris PeBenito a089b6
Chris PeBenito a089b6
dontaudit fetchmail_t self:capability sys_tty_config;
Chris PeBenito a089b6
allow fetchmail_t self:process { signal_perms setrlimit };
Chris PeBenito a089b6
allow fetchmail_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito a089b6
allow fetchmail_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito a089b6
allow fetchmail_t self:tcp_socket create_socket_perms;
Chris PeBenito a089b6
allow fetchmail_t self:udp_socket create_socket_perms;
Chris PeBenito a089b6
Chris PeBenito a089b6
allow fetchmail_t fetchmail_etc_t:file r_file_perms;
Chris PeBenito a089b6
Chris PeBenito a089b6
allow fetchmail_t fetchmail_uidl_cache_t:file create_file_perms;
Chris PeBenito 9d5949
mta_filetrans_spool(fetchmail_t,fetchmail_uidl_cache_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
allow fetchmail_t fetchmail_var_run_t:file create_file_perms;
Chris PeBenito a089b6
allow fetchmail_t fetchmail_var_run_t:dir rw_dir_perms;
Chris PeBenito 9d5949
files_filetrans_pid(fetchmail_t,fetchmail_var_run_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
kernel_read_kernel_sysctl(fetchmail_t)
Chris PeBenito a089b6
kernel_list_proc(fetchmail_t)
Chris PeBenito a089b6
kernel_read_proc_symlinks(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
corenet_non_ipsec_sendrecv(fetchmail_t)
Chris PeBenito a089b6
corenet_tcp_sendrecv_generic_if(fetchmail_t)
Chris PeBenito a089b6
corenet_udp_sendrecv_generic_if(fetchmail_t)
Chris PeBenito a089b6
corenet_raw_sendrecv_generic_if(fetchmail_t)
Chris PeBenito a089b6
corenet_tcp_sendrecv_all_nodes(fetchmail_t)
Chris PeBenito a089b6
corenet_udp_sendrecv_all_nodes(fetchmail_t)
Chris PeBenito a089b6
corenet_raw_sendrecv_all_nodes(fetchmail_t)
Chris PeBenito a089b6
corenet_tcp_sendrecv_dns_port(fetchmail_t)
Chris PeBenito a089b6
corenet_udp_sendrecv_dns_port(fetchmail_t)
Chris PeBenito a089b6
corenet_tcp_sendrecv_pop_port(fetchmail_t)
Chris PeBenito a089b6
corenet_tcp_sendrecv_smtp_port(fetchmail_t)
Chris PeBenito a089b6
corenet_tcp_bind_all_nodes(fetchmail_t)
Chris PeBenito a089b6
corenet_udp_bind_all_nodes(fetchmail_t)
Chris PeBenito a089b6
corenet_tcp_connect_all_ports(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
dev_read_sysfs(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
files_read_etc_files(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
fs_getattr_all_fs(fetchmail_t)
Chris PeBenito a089b6
fs_search_auto_mountpoints(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
term_dontaudit_use_console(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
domain_use_wide_inherit_fd(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
init_use_fd(fetchmail_t)
Chris PeBenito a089b6
init_use_script_pty(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
libs_use_ld_so(fetchmail_t)
Chris PeBenito a089b6
libs_use_shared_libs(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
logging_send_syslog_msg(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
miscfiles_read_localization(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
sysnet_read_config(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
userdom_dontaudit_use_unpriv_user_fd(fetchmail_t)
Chris PeBenito a089b6
userdom_dontaudit_search_sysadm_home_dir(fetchmail_t)
Chris PeBenito a089b6
Chris PeBenito a089b6
ifdef(`targeted_policy',`
Chris PeBenito a089b6
	term_dontaudit_use_unallocated_tty(fetchmail_t)
Chris PeBenito a089b6
	term_dontaudit_use_generic_pty(fetchmail_t)
Chris PeBenito a089b6
	files_dontaudit_read_root_file(fetchmail_t)
Chris PeBenito a089b6
')
Chris PeBenito a089b6
Chris PeBenito a089b6
optional_policy(`selinuxutil',`
Chris PeBenito a089b6
	seutil_sigchld_newrole(fetchmail_t)
Chris PeBenito a089b6
')
Chris PeBenito a089b6
Chris PeBenito a089b6
optional_policy(`udev',`
Chris PeBenito a089b6
	udev_read_db(fetchmail_t)
Chris PeBenito a089b6
')