2 policy_module(privoxy, 1.7.0)
4 ########################################
9 type privoxy_t; # web_client_domain
11 init_daemon_domain(privoxy_t,privoxy_exec_t)
13 type privoxy_etc_rw_t;
14 files_type(privoxy_etc_rw_t)
17 logging_log_file(privoxy_log_t)
19 type privoxy_var_run_t;
20 files_pid_file(privoxy_var_run_t)
22 ########################################
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;
31 allow privoxy_t privoxy_etc_rw_t:file rw_file_perms;
33 manage_files_pattern(privoxy_t,privoxy_log_t,privoxy_log_t)
34 logging_log_filetrans(privoxy_t,privoxy_log_t,file)
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)
39 kernel_read_kernel_sysctls(privoxy_t)
40 kernel_list_proc(privoxy_t)
41 kernel_read_proc_symlinks(privoxy_t)
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)
60 dev_read_sysfs(privoxy_t)
62 fs_getattr_all_fs(privoxy_t)
63 fs_search_auto_mountpoints(privoxy_t)
65 domain_use_interactive_fds(privoxy_t)
67 files_read_etc_files(privoxy_t)
69 libs_use_ld_so(privoxy_t)
70 libs_use_shared_libs(privoxy_t)
72 logging_send_syslog_msg(privoxy_t)
74 miscfiles_read_localization(privoxy_t)
76 sysnet_dns_name_resolve(privoxy_t)
78 userdom_dontaudit_use_unpriv_user_fds(privoxy_t)
80 sysadm_dontaudit_search_home_dirs(privoxy_t)
81 # cjp: this should really not be needed
82 sysadm_use_terms(privoxy_t)
85 nis_use_ypbind(privoxy_t)
89 nscd_socket_use(privoxy_t)
93 seutil_sigchld_newrole(privoxy_t)
97 udev_read_db(privoxy_t)