Chris PeBenito fa8951
Chris PeBenito fa8951
policy_module(transproxy,1.0.0)
Chris PeBenito fa8951
Chris PeBenito fa8951
########################################
Chris PeBenito fa8951
#
Chris PeBenito fa8951
# Declarations
Chris PeBenito fa8951
#
Chris PeBenito fa8951
Chris PeBenito fa8951
type transproxy_t;
Chris PeBenito fa8951
type transproxy_exec_t;
Chris PeBenito fa8951
init_daemon_domain(transproxy_t,transproxy_exec_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
type transproxy_var_run_t;
Chris PeBenito fa8951
files_pid_file(transproxy_var_run_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
########################################
Chris PeBenito fa8951
#
Chris PeBenito fa8951
# Local policy
Chris PeBenito fa8951
#
Chris PeBenito fa8951
Chris PeBenito fa8951
allow transproxy_t self:capability { setgid setuid };
Chris PeBenito fa8951
dontaudit transproxy_t self:capability sys_tty_config;
Chris PeBenito fa8951
allow transproxy_t self:process signal_perms;
Chris PeBenito fa8951
allow transproxy_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito fa8951
Chris PeBenito fa8951
allow transproxy_t transproxy_var_run_t:file create_file_perms;
Chris PeBenito fa8951
allow transproxy_t transproxy_var_run_t:dir rw_dir_perms;
Chris PeBenito fa8951
files_pid_filetrans(transproxy_t,transproxy_var_run_t,file)
Chris PeBenito fa8951
Chris PeBenito fa8951
kernel_read_kernel_sysctls(transproxy_t)
Chris PeBenito fa8951
kernel_list_proc(transproxy_t)
Chris PeBenito fa8951
kernel_read_proc_symlinks(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
corenet_non_ipsec_sendrecv(transproxy_t)
Chris PeBenito fa8951
corenet_tcp_sendrecv_generic_if(transproxy_t)
Chris PeBenito fa8951
corenet_raw_sendrecv_generic_if(transproxy_t)
Chris PeBenito fa8951
corenet_tcp_sendrecv_all_nodes(transproxy_t)
Chris PeBenito fa8951
corenet_raw_sendrecv_all_nodes(transproxy_t)
Chris PeBenito fa8951
corenet_tcp_sendrecv_all_ports(transproxy_t)
Chris PeBenito fa8951
corenet_tcp_bind_all_nodes(transproxy_t)
Chris PeBenito fa8951
corenet_tcp_bind_transproxy_port(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
dev_read_sysfs(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
domain_use_interactive_fds(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
files_read_etc_files(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
fs_getattr_all_fs(transproxy_t)
Chris PeBenito fa8951
fs_search_auto_mountpoints(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
term_dontaudit_use_console(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
init_use_fds(transproxy_t)
Chris PeBenito fa8951
init_use_script_ptys(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
libs_use_ld_so(transproxy_t)
Chris PeBenito fa8951
libs_use_shared_libs(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
logging_send_syslog_msg(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
miscfiles_read_localization(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
sysnet_read_config(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
userdom_dontaudit_use_unpriv_user_fds(transproxy_t)
Chris PeBenito fa8951
userdom_dontaudit_search_sysadm_home_dirs(transproxy_t)
Chris PeBenito fa8951
Chris PeBenito fa8951
ifdef(`targeted_policy',`
Chris PeBenito fa8951
	term_dontaudit_use_unallocated_ttys(transproxy_t)
Chris PeBenito fa8951
	term_dontaudit_use_generic_ptys(transproxy_t)
Chris PeBenito fa8951
	files_dontaudit_read_root_files(transproxy_t)
Chris PeBenito fa8951
')
Chris PeBenito fa8951
Chris PeBenito fa8951
optional_policy(`
Chris PeBenito fa8951
	seutil_sigchld_newrole(transproxy_t)
Chris PeBenito fa8951
')
Chris PeBenito fa8951
Chris PeBenito fa8951
optional_policy(`
Chris PeBenito fa8951
	udev_read_db(transproxy_t)
Chris PeBenito fa8951
')