Chris PeBenito 31b7c0
#DESC Transproxy - Transparent proxy for web access
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# Author:  Russell Coker <russell@coker.com.au>
Chris PeBenito 31b7c0
# X-Debian-Packages: transproxy
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
#################################
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# Rules for the transproxy_t domain.
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
# transproxy_exec_t is the type of the transproxy executable.
Chris PeBenito 31b7c0
#
Chris PeBenito 31b7c0
daemon_domain(transproxy)
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
# Use the network.
Chris PeBenito 31b7c0
can_network_server_tcp(transproxy_t)
Chris PeBenito 31b7c0
allow transproxy_t transproxy_port_t:tcp_socket name_bind;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
#allow transproxy_t self:fifo_file { read write };
Chris PeBenito 31b7c0
allow transproxy_t self:unix_stream_socket create_socket_perms;
Chris PeBenito 31b7c0
allow transproxy_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
# Use capabilities
Chris PeBenito 31b7c0
allow transproxy_t self:capability { setgid setuid };
Chris PeBenito 31b7c0
#allow transproxy_t self:process setsched;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
#allow transproxy_t proc_t:file r_file_perms;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
# read config files
Chris PeBenito 31b7c0
allow transproxy_t etc_t:lnk_file read;
Chris PeBenito 31b7c0
allow transproxy_t etc_t:file { read getattr };
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
#allow transproxy_t etc_t:dir r_dir_perms;
Chris PeBenito 31b7c0
Chris PeBenito 31b7c0
#read_sysctl(transproxy_t)
Chris PeBenito 31b7c0