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