]> git.ipfire.org Git - people/stevee/selinux-policy.git/blob - policy/modules/services/privoxy.te
trunk: bump versions for release.
[people/stevee/selinux-policy.git] / policy / modules / services / privoxy.te
1
2 policy_module(privoxy, 1.7.0)
3
4 ########################################
5 #
6 # Declarations
7 #
8
9 type privoxy_t; # web_client_domain
10 type privoxy_exec_t;
11 init_daemon_domain(privoxy_t,privoxy_exec_t)
12
13 type privoxy_etc_rw_t;
14 files_type(privoxy_etc_rw_t)
15
16 type privoxy_log_t;
17 logging_log_file(privoxy_log_t)
18
19 type privoxy_var_run_t;
20 files_pid_file(privoxy_var_run_t)
21
22 ########################################
23 #
24 # Local Policy
25 #
26
27 allow privoxy_t self:capability { setgid setuid };
28 dontaudit privoxy_t self:capability sys_tty_config;
29 allow privoxy_t self:tcp_socket create_stream_socket_perms;
30
31 allow privoxy_t privoxy_etc_rw_t:file rw_file_perms;
32
33 manage_files_pattern(privoxy_t,privoxy_log_t,privoxy_log_t)
34 logging_log_filetrans(privoxy_t,privoxy_log_t,file)
35
36 manage_files_pattern(privoxy_t,privoxy_var_run_t,privoxy_var_run_t)
37 files_pid_filetrans(privoxy_t,privoxy_var_run_t,file)
38
39 kernel_read_kernel_sysctls(privoxy_t)
40 kernel_list_proc(privoxy_t)
41 kernel_read_proc_symlinks(privoxy_t)
42
43 corenet_all_recvfrom_unlabeled(privoxy_t)
44 corenet_all_recvfrom_netlabel(privoxy_t)
45 corenet_tcp_sendrecv_all_if(privoxy_t)
46 corenet_tcp_sendrecv_all_nodes(privoxy_t)
47 corenet_tcp_sendrecv_all_ports(privoxy_t)
48 corenet_tcp_bind_all_nodes(privoxy_t)
49 corenet_tcp_bind_http_cache_port(privoxy_t)
50 corenet_tcp_connect_http_port(privoxy_t)
51 corenet_tcp_connect_http_cache_port(privoxy_t)
52 corenet_tcp_connect_ftp_port(privoxy_t)
53 corenet_tcp_connect_tor_port(privoxy_t)
54 corenet_sendrecv_http_cache_client_packets(privoxy_t)
55 corenet_sendrecv_http_cache_server_packets(privoxy_t)
56 corenet_sendrecv_http_client_packets(privoxy_t)
57 corenet_sendrecv_ftp_client_packets(privoxy_t)
58 corenet_sendrecv_tor_client_packets(privoxy_t)
59
60 dev_read_sysfs(privoxy_t)
61
62 fs_getattr_all_fs(privoxy_t)
63 fs_search_auto_mountpoints(privoxy_t)
64
65 domain_use_interactive_fds(privoxy_t)
66
67 files_read_etc_files(privoxy_t)
68
69 libs_use_ld_so(privoxy_t)
70 libs_use_shared_libs(privoxy_t)
71
72 logging_send_syslog_msg(privoxy_t)
73
74 miscfiles_read_localization(privoxy_t)
75
76 sysnet_dns_name_resolve(privoxy_t)
77
78 userdom_dontaudit_use_unpriv_user_fds(privoxy_t)
79
80 sysadm_dontaudit_search_home_dirs(privoxy_t)
81 # cjp: this should really not be needed
82 sysadm_use_terms(privoxy_t)
83
84 optional_policy(`
85 nis_use_ypbind(privoxy_t)
86 ')
87
88 optional_policy(`
89 nscd_socket_use(privoxy_t)
90 ')
91
92 optional_policy(`
93 seutil_sigchld_newrole(privoxy_t)
94 ')
95
96 optional_policy(`
97 udev_read_db(privoxy_t)
98 ')