2005-12-08 15:58:12 +00:00
|
|
|
|
2007-12-14 14:23:18 +00:00
|
|
|
policy_module(fetchmail,1.5.0)
|
2005-12-08 15:58:12 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
2006-05-17 20:55:12 +00:00
|
|
|
|
2005-12-08 15:58:12 +00:00
|
|
|
type fetchmail_t;
|
|
|
|
type fetchmail_exec_t;
|
|
|
|
init_daemon_domain(fetchmail_t,fetchmail_exec_t)
|
|
|
|
|
|
|
|
type fetchmail_var_run_t;
|
|
|
|
files_pid_file(fetchmail_var_run_t)
|
|
|
|
|
|
|
|
type fetchmail_etc_t;
|
|
|
|
files_type(fetchmail_etc_t)
|
|
|
|
|
|
|
|
type fetchmail_uidl_cache_t;
|
|
|
|
files_type(fetchmail_uidl_cache_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
dontaudit fetchmail_t self:capability sys_tty_config;
|
|
|
|
allow fetchmail_t self:process { signal_perms setrlimit };
|
|
|
|
allow fetchmail_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow fetchmail_t self:unix_stream_socket create_stream_socket_perms;
|
2006-05-17 20:55:12 +00:00
|
|
|
allow fetchmail_t self:netlink_route_socket r_netlink_socket_perms;
|
2005-12-08 15:58:12 +00:00
|
|
|
allow fetchmail_t self:tcp_socket create_socket_perms;
|
|
|
|
allow fetchmail_t self:udp_socket create_socket_perms;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow fetchmail_t fetchmail_etc_t:file read_file_perms;
|
2005-12-08 15:58:12 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow fetchmail_t fetchmail_uidl_cache_t:file manage_file_perms;
|
2006-03-02 23:41:11 +00:00
|
|
|
mta_spool_filetrans(fetchmail_t,fetchmail_uidl_cache_t,file)
|
2005-12-08 15:58:12 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(fetchmail_t,fetchmail_var_run_t,fetchmail_var_run_t)
|
2006-03-02 23:41:11 +00:00
|
|
|
files_pid_filetrans(fetchmail_t,fetchmail_var_run_t,file)
|
2005-12-08 15:58:12 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(fetchmail_t)
|
2005-12-08 15:58:12 +00:00
|
|
|
kernel_list_proc(fetchmail_t)
|
2006-01-18 18:45:23 +00:00
|
|
|
kernel_getattr_proc_files(fetchmail_t)
|
2005-12-08 15:58:12 +00:00
|
|
|
kernel_read_proc_symlinks(fetchmail_t)
|
2006-02-13 22:05:08 +00:00
|
|
|
kernel_dontaudit_read_system_state(fetchmail_t)
|
2005-12-08 15:58:12 +00:00
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(fetchmail_t)
|
|
|
|
corenet_all_recvfrom_netlabel(fetchmail_t)
|
2005-12-08 15:58:12 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(fetchmail_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(fetchmail_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(fetchmail_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(fetchmail_t)
|
|
|
|
corenet_tcp_sendrecv_dns_port(fetchmail_t)
|
|
|
|
corenet_udp_sendrecv_dns_port(fetchmail_t)
|
|
|
|
corenet_tcp_sendrecv_pop_port(fetchmail_t)
|
|
|
|
corenet_tcp_sendrecv_smtp_port(fetchmail_t)
|
|
|
|
corenet_tcp_connect_all_ports(fetchmail_t)
|
2006-06-02 15:06:45 +00:00
|
|
|
corenet_sendrecv_all_client_packets(fetchmail_t)
|
2005-12-08 15:58:12 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(fetchmail_t)
|
2006-01-18 18:45:23 +00:00
|
|
|
dev_read_rand(fetchmail_t)
|
|
|
|
dev_read_urand(fetchmail_t)
|
2005-12-08 15:58:12 +00:00
|
|
|
|
|
|
|
files_read_etc_files(fetchmail_t)
|
2006-01-18 18:45:23 +00:00
|
|
|
files_read_etc_runtime_files(fetchmail_t)
|
2006-02-20 16:31:54 +00:00
|
|
|
files_dontaudit_search_home(fetchmail_t)
|
2005-12-08 15:58:12 +00:00
|
|
|
|
|
|
|
fs_getattr_all_fs(fetchmail_t)
|
|
|
|
fs_search_auto_mountpoints(fetchmail_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(fetchmail_t)
|
2005-12-08 15:58:12 +00:00
|
|
|
|
|
|
|
libs_use_ld_so(fetchmail_t)
|
|
|
|
libs_use_shared_libs(fetchmail_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(fetchmail_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(fetchmail_t)
|
2006-01-18 18:45:23 +00:00
|
|
|
miscfiles_read_certs(fetchmail_t)
|
2005-12-08 15:58:12 +00:00
|
|
|
|
|
|
|
sysnet_read_config(fetchmail_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(fetchmail_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(fetchmail_t)
|
2005-12-08 15:58:12 +00:00
|
|
|
|
2007-11-15 16:54:18 +00:00
|
|
|
optional_policy(`
|
|
|
|
procmail_domtrans(fetchmail_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-12-08 15:58:12 +00:00
|
|
|
seutil_sigchld_newrole(fetchmail_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-12-08 15:58:12 +00:00
|
|
|
udev_read_db(fetchmail_t)
|
|
|
|
')
|