Chris PeBenito a1fcff
Chris PeBenito d46cfe
policy_module(vpn,1.5.1)
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 d46cfe
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 a1fcff
allow vpnc_t self:capability { net_admin ipc_lock net_raw };
Chris PeBenito a77e65
allow vpnc_t self:process getsched;
Chris PeBenito a1fcff
allow vpnc_t self:fifo_file { getattr ioctl read write };
Chris PeBenito a1fcff
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 a1fcff
# cjp: this needs to be fixed
Chris PeBenito a1fcff
allow vpnc_t self:socket create_socket_perms;
Chris PeBenito a1fcff
Chris PeBenito c0868a
manage_dirs_pattern(vpnc_t,vpnc_tmp_t,vpnc_tmp_t)
Chris PeBenito c0868a
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 c0868a
manage_files_pattern(vpnc_t,vpnc_var_run_t,vpnc_var_run_t)
Chris PeBenito 1c1ac6
files_pid_filetrans(vpnc_t,vpnc_var_run_t,file)
Chris PeBenito a1fcff
Chris PeBenito a1fcff
kernel_read_system_state(vpnc_t)
Chris PeBenito a1fcff
kernel_read_network_state(vpnc_t)
Chris PeBenito 445522
kernel_read_kernel_sysctls(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 a1fcff
corenet_tcp_sendrecv_all_if(vpnc_t)
Chris PeBenito a1fcff
corenet_udp_sendrecv_all_if(vpnc_t)
Chris PeBenito a1fcff
corenet_raw_sendrecv_all_if(vpnc_t)
Chris PeBenito a1fcff
corenet_tcp_sendrecv_all_nodes(vpnc_t)
Chris PeBenito a1fcff
corenet_udp_sendrecv_all_nodes(vpnc_t)
Chris PeBenito a1fcff
corenet_raw_sendrecv_all_nodes(vpnc_t)
Chris PeBenito a1fcff
corenet_tcp_sendrecv_all_ports(vpnc_t)
Chris PeBenito a1fcff
corenet_udp_sendrecv_all_ports(vpnc_t)
Chris PeBenito a1fcff
corenet_udp_bind_all_nodes(vpnc_t)
Chris PeBenito a1fcff
corenet_udp_bind_generic_port(vpnc_t)
Chris PeBenito a1fcff
corenet_udp_bind_isakmp_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 a1fcff
fs_getattr_xattr_fs(vpnc_t)
Chris PeBenito 46c69c
fs_getattr_tmpfs(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito a1fcff
term_use_all_user_ptys(vpnc_t)
Chris PeBenito a1fcff
term_use_all_user_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 a1fcff
libs_exec_ld_so(vpnc_t)
Chris PeBenito a1fcff
libs_exec_lib_files(vpnc_t)
Chris PeBenito a1fcff
libs_use_ld_so(vpnc_t)
Chris PeBenito a1fcff
libs_use_shared_libs(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 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 a1fcff
sysnet_exec_ifconfig(vpnc_t)
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 103fe2
userdom_dontaudit_search_all_users_home_content(vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito a77e65
	dbus_system_bus_client_template(vpnc,vpnc_t)
Chris PeBenito 0f27d9
	dbus_send_system_bus(vpnc_t)
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 0f27d9
		networkmanager_dbus_chat(vpnc_t)
Chris PeBenito 0f27d9
	')
Chris PeBenito a77e65
')
Chris PeBenito a77e65
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito a1fcff
        nis_use_ypbind(vpnc_t)
Chris PeBenito a1fcff
')
Chris PeBenito a1fcff
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 1815ba
	nscd_socket_use(vpnc_t)
Chris PeBenito a1fcff
')