Chris PeBenito 29af4c
policy_module(vpn, 1.13.0)
Chris PeBenito a1fcff
Chris PeBenito a1fcff
########################################
Chris PeBenito a1fcff
#
Chris PeBenito a1fcff
# Declarations
Chris PeBenito a1fcff
#
Chris PeBenito a1fcff
Chris PeBenito a1fcff
type vpnc_t;
Chris PeBenito a1fcff
type vpnc_exec_t;
Chris PeBenito f50856
application_domain(vpnc_t, vpnc_exec_t)
Chris PeBenito 46c69c
role system_r types vpnc_t;
Chris PeBenito a1fcff
Chris PeBenito a1fcff
type vpnc_tmp_t;
Chris PeBenito a1fcff
files_tmp_file(vpnc_tmp_t)
Chris PeBenito a1fcff
Chris PeBenito a1fcff
type vpnc_var_run_t;
Chris PeBenito a1fcff
files_pid_file(vpnc_var_run_t)
Chris PeBenito a1fcff
Chris PeBenito a1fcff
########################################
Chris PeBenito a1fcff
#
Chris PeBenito a1fcff
# Local policy
Chris PeBenito a1fcff
#
Chris PeBenito a1fcff
Chris PeBenito 12c61f
allow vpnc_t self:capability { dac_read_search dac_override net_admin ipc_lock net_raw };
Chris PeBenito 74993c
allow vpnc_t self:process { getsched signal };
Chris PeBenito 12c61f
allow vpnc_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 12c61f
allow vpnc_t self:netlink_route_socket rw_netlink_socket_perms;
Chris PeBenito a1fcff
allow vpnc_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito a1fcff
allow vpnc_t self:udp_socket create_socket_perms;
Chris PeBenito a1fcff
allow vpnc_t self:rawip_socket create_socket_perms;
Chris PeBenito a1fcff
allow vpnc_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito a1fcff
allow vpnc_t self:unix_stream_socket create_socket_perms;
Chris PeBenito c789f8
allow vpnc_t self:tun_socket create_socket_perms;
Chris PeBenito a1fcff
# cjp: this needs to be fixed
Chris PeBenito a1fcff
allow vpnc_t self:socket create_socket_perms;
Chris PeBenito a1fcff
Chris PeBenito f50856
manage_dirs_pattern(vpnc_t, vpnc_tmp_t, vpnc_tmp_t)
Chris PeBenito f50856
manage_files_pattern(vpnc_t, vpnc_tmp_t, vpnc_tmp_t)
Chris PeBenito 103fe2
files_tmp_filetrans(vpnc_t, vpnc_tmp_t, { file dir })
Chris PeBenito a1fcff
Chris PeBenito f50856
manage_dirs_pattern(vpnc_t, vpnc_var_run_t, vpnc_var_run_t)
Chris PeBenito f50856
manage_files_pattern(vpnc_t, vpnc_var_run_t, vpnc_var_run_t)
Chris PeBenito f50856
files_pid_filetrans(vpnc_t, vpnc_var_run_t, { file dir})
Chris PeBenito a1fcff
Chris PeBenito a1fcff
kernel_read_system_state(vpnc_t)
Chris PeBenito a1fcff
kernel_read_network_state(vpnc_t)
Chris PeBenito 74993c
kernel_read_all_sysctls(vpnc_t)
Jeremy Solt fdc0d0
kernel_request_load_module(vpnc_t)
Chris PeBenito 445522
kernel_rw_net_sysctls(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(vpnc_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(vpnc_t)
Chris PeBenito 668b30
corenet_tcp_sendrecv_generic_if(vpnc_t)
Chris PeBenito 668b30
corenet_udp_sendrecv_generic_if(vpnc_t)
Chris PeBenito 668b30
corenet_raw_sendrecv_generic_if(vpnc_t)
Chris PeBenito c12621
corenet_tcp_sendrecv_generic_node(vpnc_t)
Chris PeBenito c12621
corenet_udp_sendrecv_generic_node(vpnc_t)
Chris PeBenito c12621
corenet_raw_sendrecv_generic_node(vpnc_t)
Chris PeBenito a1fcff
corenet_tcp_sendrecv_all_ports(vpnc_t)
Chris PeBenito a1fcff
corenet_udp_sendrecv_all_ports(vpnc_t)
Chris PeBenito c12621
corenet_udp_bind_generic_node(vpnc_t)
Chris PeBenito a1fcff
corenet_udp_bind_generic_port(vpnc_t)
Chris PeBenito a1fcff
corenet_udp_bind_isakmp_port(vpnc_t)
Chris PeBenito f50856
corenet_udp_bind_ipsecnat_port(vpnc_t)
Chris PeBenito a1fcff
corenet_tcp_connect_all_ports(vpnc_t)
Chris PeBenito 9d0c9b
corenet_sendrecv_all_client_packets(vpnc_t)
Chris PeBenito 9d0c9b
corenet_sendrecv_isakmp_server_packets(vpnc_t)
Chris PeBenito 9d0c9b
corenet_sendrecv_generic_server_packets(vpnc_t)
Chris PeBenito 5b6ddb
corenet_rw_tun_tap_dev(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito a1fcff
dev_read_rand(vpnc_t)
Chris PeBenito a1fcff
dev_read_urand(vpnc_t)
Chris PeBenito a1fcff
dev_read_sysfs(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito f50856
domain_use_interactive_fds(vpnc_t)
Chris PeBenito f50856
Chris PeBenito a1fcff
fs_getattr_xattr_fs(vpnc_t)
Chris PeBenito 46c69c
fs_getattr_tmpfs(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito c3c753
term_use_all_ptys(vpnc_t)
Chris PeBenito c3c753
term_use_all_ttys(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito fb63d0
corecmd_exec_all_executables(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito a1fcff
files_exec_etc_files(vpnc_t)
Chris PeBenito a1fcff
files_read_etc_runtime_files(vpnc_t)
Chris PeBenito a1fcff
files_read_etc_files(vpnc_t)
Chris PeBenito a1fcff
files_dontaudit_search_home(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito 09e216
auth_use_nsswitch(vpnc_t)
Chris PeBenito 09e216
Chris PeBenito a1fcff
libs_exec_ld_so(vpnc_t)
Chris PeBenito a1fcff
libs_exec_lib_files(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito 1c1ac6
locallogin_use_fds(vpnc_t)
Chris PeBenito 0f27d9
Chris PeBenito a77e65
logging_send_syslog_msg(vpnc_t)
Chris PeBenito f50856
logging_dontaudit_search_logs(vpnc_t)
Chris PeBenito a77e65
Chris PeBenito a1fcff
miscfiles_read_localization(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito a1fcff
seutil_dontaudit_search_config(vpnc_t)
Chris PeBenito 6b19be
seutil_use_newrole_fds(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito 103fe2
sysnet_etc_filetrans_config(vpnc_t)
Chris PeBenito a1fcff
sysnet_manage_config(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito 15722e
userdom_use_all_users_fds(vpnc_t)
Chris PeBenito 296273
userdom_dontaudit_search_user_home_content(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 296273
	dbus_system_bus_client(vpnc_t)
Chris PeBenito bd973e
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 0f27d9
		networkmanager_dbus_chat(vpnc_t)
Chris PeBenito 0f27d9
	')
Chris PeBenito a77e65
')
Jeremy Solt fdc0d0
Jeremy Solt fdc0d0
optional_policy(`
Jeremy Solt fdc0d0
	networkmanager_attach_tun_iface(vpnc_t)
Jeremy Solt fdc0d0
')