|
Chris PeBenito |
a1fcff |
|
|
Chris PeBenito |
d3d270 |
policy_module(vpnc,1.1.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 |
domain_type(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
|
|
Chris PeBenito |
a1fcff |
type vpnc_exec_t;
|
|
Chris PeBenito |
a1fcff |
domain_entry_file(vpnc_t,vpnc_exec_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 |
a1fcff |
allow vpnc_t vpnc_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
a1fcff |
allow vpnc_t vpnc_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_tmp(vpnc_t, vpnc_tmp_t, { file dir })
|
|
Chris PeBenito |
a1fcff |
|
|
Chris PeBenito |
a1fcff |
allow vpnc_t vpnc_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
a1fcff |
allow vpnc_t vpnc_var_run_t:dir rw_dir_perms;
|
|
Chris PeBenito |
9d5949 |
files_filetrans_pid(vpnc_t,vpnc_var_run_t)
|
|
Chris PeBenito |
a1fcff |
|
|
Chris PeBenito |
a1fcff |
kernel_read_system_state(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
kernel_read_network_state(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
kernel_read_kernel_sysctl(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
kernel_rw_net_sysctl(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
|
|
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 |
bd7037 |
corenet_non_ipsec_sendrecv(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
corenet_tcp_bind_all_nodes(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 |
a1fcff |
corenet_use_tun_tap_device(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 |
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 |
a1fcff |
corecmd_exec_bin(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
corecmd_exec_sbin(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
corecmd_exec_shell(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
|
|
Chris PeBenito |
a1fcff |
domain_exec_all_entry_files(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 |
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 |
a1fcff |
|
|
Chris PeBenito |
a1fcff |
sysnet_exec_ifconfig(vpnc_t)
|
|
Chris PeBenito |
9d5949 |
sysnet_filetrans_config(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
sysnet_manage_config(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
|
|
Chris PeBenito |
a1fcff |
userdom_use_all_user_fd(vpnc_t)
|
|
Chris PeBenito |
3774e4 |
userdom_dontaudit_search_all_users_home(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
|
|
Chris PeBenito |
a77e65 |
optional_policy(`dbus',`
|
|
Chris PeBenito |
a77e65 |
dbus_system_bus_client_template(vpnc,vpnc_t)
|
|
Chris PeBenito |
a77e65 |
')
|
|
Chris PeBenito |
a77e65 |
|
|
Chris PeBenito |
132880 |
optional_policy(`mount',`
|
|
Chris PeBenito |
a1fcff |
mount_send_nfs_client_request(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
')
|
|
Chris PeBenito |
a1fcff |
|
|
Chris PeBenito |
132880 |
optional_policy(`nis',`
|
|
Chris PeBenito |
a1fcff |
nis_use_ypbind(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
')
|
|
Chris PeBenito |
a1fcff |
|
|
Chris PeBenito |
132880 |
optional_policy(`nscd',`
|
|
Chris PeBenito |
a1fcff |
nscd_use_socket(vpnc_t)
|
|
Chris PeBenito |
a1fcff |
')
|