|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
724925 |
policy_module(privoxy,1.1.1)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
########################################
|
|
Chris PeBenito |
902be0 |
#
|
|
Chris PeBenito |
902be0 |
# Declarations
|
|
Chris PeBenito |
902be0 |
#
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
0907bd |
type privoxy_t; # web_client_domain
|
|
Chris PeBenito |
902be0 |
type privoxy_exec_t;
|
|
Chris PeBenito |
902be0 |
init_daemon_domain(privoxy_t,privoxy_exec_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
78510c |
type privoxy_etc_rw_t;
|
|
Chris PeBenito |
78510c |
files_type(privoxy_etc_rw_t)
|
|
Chris PeBenito |
78510c |
|
|
Chris PeBenito |
902be0 |
type privoxy_log_t;
|
|
Chris PeBenito |
902be0 |
logging_log_file(privoxy_log_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
type privoxy_var_run_t;
|
|
Chris PeBenito |
902be0 |
files_pid_file(privoxy_var_run_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
########################################
|
|
Chris PeBenito |
902be0 |
#
|
|
Chris PeBenito |
902be0 |
# Local Policy
|
|
Chris PeBenito |
902be0 |
#
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
allow privoxy_t self:capability { setgid setuid };
|
|
Chris PeBenito |
902be0 |
dontaudit privoxy_t self:capability sys_tty_config;
|
|
Chris PeBenito |
c38127 |
allow privoxy_t self:tcp_socket create_stream_socket_perms;
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
78510c |
allow privoxy_t privoxy_etc_rw_t:file rw_file_perms;
|
|
Chris PeBenito |
78510c |
|
|
Chris PeBenito |
902be0 |
allow privoxy_t privoxy_log_t:file create_file_perms;
|
|
Chris PeBenito |
902be0 |
allow privoxy_t privoxy_log_t:dir rw_dir_perms;
|
|
Chris PeBenito |
1c1ac6 |
logging_log_filetrans(privoxy_t,privoxy_log_t,file)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
allow privoxy_t privoxy_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
4614e8 |
allow privoxy_t privoxy_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
1c1ac6 |
files_pid_filetrans(privoxy_t,privoxy_var_run_t,file)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
445522 |
kernel_read_kernel_sysctls(privoxy_t)
|
|
Chris PeBenito |
902be0 |
kernel_list_proc(privoxy_t)
|
|
Chris PeBenito |
902be0 |
kernel_read_proc_symlinks(privoxy_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
corenet_tcp_sendrecv_all_if(privoxy_t)
|
|
Chris PeBenito |
902be0 |
corenet_raw_sendrecv_all_if(privoxy_t)
|
|
Chris PeBenito |
902be0 |
corenet_tcp_sendrecv_all_nodes(privoxy_t)
|
|
Chris PeBenito |
902be0 |
corenet_raw_sendrecv_all_nodes(privoxy_t)
|
|
Chris PeBenito |
902be0 |
corenet_tcp_sendrecv_all_ports(privoxy_t)
|
|
Chris PeBenito |
bd7037 |
corenet_non_ipsec_sendrecv(privoxy_t)
|
|
Chris PeBenito |
0907bd |
corenet_tcp_bind_http_cache_port(privoxy_t)
|
|
Chris PeBenito |
c38127 |
corenet_tcp_connect_http_port(privoxy_t)
|
|
Chris PeBenito |
85a0f9 |
corenet_tcp_connect_http_cache_port(privoxy_t)
|
|
Chris PeBenito |
c38127 |
corenet_tcp_connect_ftp_port(privoxy_t)
|
|
Chris PeBenito |
724925 |
corenet_tcp_connect_tor_port(privoxy_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
dev_read_sysfs(privoxy_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
fs_getattr_all_fs(privoxy_t)
|
|
Chris PeBenito |
902be0 |
fs_search_auto_mountpoints(privoxy_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
term_dontaudit_use_console(privoxy_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
15722e |
domain_use_interactive_fds(privoxy_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
files_read_etc_files(privoxy_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
1c1ac6 |
init_use_fds(privoxy_t)
|
|
Chris PeBenito |
1815ba |
init_use_script_ptys(privoxy_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
libs_use_ld_so(privoxy_t)
|
|
Chris PeBenito |
902be0 |
libs_use_shared_libs(privoxy_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
logging_send_syslog_msg(privoxy_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
miscfiles_read_localization(privoxy_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
a08248 |
sysnet_dns_name_resolve(privoxy_t)
|
|
Chris PeBenito |
a08248 |
|
|
Chris PeBenito |
15722e |
userdom_dontaudit_use_unpriv_user_fds(privoxy_t)
|
|
Chris PeBenito |
103fe2 |
userdom_dontaudit_search_sysadm_home_dirs(privoxy_t)
|
|
Chris PeBenito |
902be0 |
# cjp: this should really not be needed
|
|
Chris PeBenito |
902be0 |
userdom_use_sysadm_terms(privoxy_t)
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
902be0 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
1815ba |
term_dontaudit_use_unallocated_ttys(privoxy_t)
|
|
Chris PeBenito |
1815ba |
term_dontaudit_use_generic_ptys(privoxy_t)
|
|
Chris PeBenito |
9e04f5 |
files_dontaudit_read_root_files(privoxy_t)
|
|
Chris PeBenito |
902be0 |
')
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
902be0 |
mount_send_nfs_client_request(privoxy_t)
|
|
Chris PeBenito |
902be0 |
')
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
0907bd |
nis_use_ypbind(privoxy_t)
|
|
Chris PeBenito |
0907bd |
')
|
|
Chris PeBenito |
0907bd |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
724925 |
nscd_socket_use(privoxy_t)
|
|
Chris PeBenito |
724925 |
')
|
|
Chris PeBenito |
724925 |
|
|
Chris PeBenito |
724925 |
optional_policy(`
|
|
Chris PeBenito |
902be0 |
seutil_sigchld_newrole(privoxy_t)
|
|
Chris PeBenito |
902be0 |
')
|
|
Chris PeBenito |
902be0 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
902be0 |
udev_read_db(privoxy_t)
|
|
Chris PeBenito |
902be0 |
')
|