]> git.ipfire.org Git - people/stevee/selinux-policy.git/blob - policy/modules/services/fetchmail.te
merge policy patterns to trunk
[people/stevee/selinux-policy.git] / policy / modules / services / fetchmail.te
1
2 policy_module(fetchmail,1.2.0)
3
4 ########################################
5 #
6 # Declarations
7 #
8
9 type fetchmail_t;
10 type fetchmail_exec_t;
11 init_daemon_domain(fetchmail_t,fetchmail_exec_t)
12
13 type fetchmail_var_run_t;
14 files_pid_file(fetchmail_var_run_t)
15
16 type fetchmail_etc_t;
17 files_type(fetchmail_etc_t)
18
19 type fetchmail_uidl_cache_t;
20 files_type(fetchmail_uidl_cache_t)
21
22 ########################################
23 #
24 # Local policy
25 #
26
27 dontaudit fetchmail_t self:capability sys_tty_config;
28 allow fetchmail_t self:process { signal_perms setrlimit };
29 allow fetchmail_t self:unix_dgram_socket create_socket_perms;
30 allow fetchmail_t self:unix_stream_socket create_stream_socket_perms;
31 allow fetchmail_t self:netlink_route_socket r_netlink_socket_perms;
32 allow fetchmail_t self:tcp_socket create_socket_perms;
33 allow fetchmail_t self:udp_socket create_socket_perms;
34
35 allow fetchmail_t fetchmail_etc_t:file read_file_perms;
36
37 allow fetchmail_t fetchmail_uidl_cache_t:file manage_file_perms;
38 mta_spool_filetrans(fetchmail_t,fetchmail_uidl_cache_t,file)
39
40 manage_files_pattern(fetchmail_t,fetchmail_var_run_t,fetchmail_var_run_t)
41 files_pid_filetrans(fetchmail_t,fetchmail_var_run_t,file)
42
43 kernel_read_kernel_sysctls(fetchmail_t)
44 kernel_list_proc(fetchmail_t)
45 kernel_getattr_proc_files(fetchmail_t)
46 kernel_read_proc_symlinks(fetchmail_t)
47 kernel_dontaudit_read_system_state(fetchmail_t)
48
49 corenet_non_ipsec_sendrecv(fetchmail_t)
50 corenet_tcp_sendrecv_generic_if(fetchmail_t)
51 corenet_udp_sendrecv_generic_if(fetchmail_t)
52 corenet_tcp_sendrecv_all_nodes(fetchmail_t)
53 corenet_udp_sendrecv_all_nodes(fetchmail_t)
54 corenet_tcp_sendrecv_dns_port(fetchmail_t)
55 corenet_udp_sendrecv_dns_port(fetchmail_t)
56 corenet_tcp_sendrecv_pop_port(fetchmail_t)
57 corenet_tcp_sendrecv_smtp_port(fetchmail_t)
58 corenet_tcp_connect_all_ports(fetchmail_t)
59 corenet_sendrecv_all_client_packets(fetchmail_t)
60
61 dev_read_sysfs(fetchmail_t)
62 dev_read_rand(fetchmail_t)
63 dev_read_urand(fetchmail_t)
64
65 files_read_etc_files(fetchmail_t)
66 files_read_etc_runtime_files(fetchmail_t)
67 files_dontaudit_search_home(fetchmail_t)
68
69 fs_getattr_all_fs(fetchmail_t)
70 fs_search_auto_mountpoints(fetchmail_t)
71
72 term_dontaudit_use_console(fetchmail_t)
73
74 domain_use_interactive_fds(fetchmail_t)
75
76 init_use_fds(fetchmail_t)
77 init_use_script_ptys(fetchmail_t)
78
79 libs_use_ld_so(fetchmail_t)
80 libs_use_shared_libs(fetchmail_t)
81
82 logging_send_syslog_msg(fetchmail_t)
83
84 miscfiles_read_localization(fetchmail_t)
85 miscfiles_read_certs(fetchmail_t)
86
87 sysnet_read_config(fetchmail_t)
88
89 userdom_dontaudit_use_unpriv_user_fds(fetchmail_t)
90 userdom_dontaudit_search_sysadm_home_dirs(fetchmail_t)
91
92 ifdef(`targeted_policy',`
93 term_dontaudit_use_unallocated_ttys(fetchmail_t)
94 term_dontaudit_use_generic_ptys(fetchmail_t)
95 files_dontaudit_read_root_files(fetchmail_t)
96 ')
97
98 optional_policy(`
99 seutil_sigchld_newrole(fetchmail_t)
100 ')
101
102 optional_policy(`
103 udev_read_db(fetchmail_t)
104 ')