summaryrefslogtreecommitdiff
path: root/policy/modules/services
diff options
context:
space:
mode:
authorChris PeBenito <cpebenito@tresys.com>2009-09-02 09:24:10 -0400
committerChris PeBenito <cpebenito@tresys.com>2009-09-02 09:24:10 -0400
commitf2f296ba6064f9ba343888e1a658425311890896 (patch)
tree4aead8035f6eab48cff2545dedb088fd756cfce6 /policy/modules/services
parent93be4ba5816ed647e4b176466211500b46dc2514 (diff)
openvpn patch from dan: Openvpn connects to cache ports and stores files in nfs and cifs directories.
Diffstat (limited to 'policy/modules/services')
-rw-r--r--policy/modules/services/openvpn.te13
1 files changed, 12 insertions, 1 deletions
diff --git a/policy/modules/services/openvpn.te b/policy/modules/services/openvpn.te
index b7853fe9..4ad43ef4 100644
--- a/policy/modules/services/openvpn.te
+++ b/policy/modules/services/openvpn.te
@@ -1,5 +1,5 @@
-policy_module(openvpn, 1.8.1)
+policy_module(openvpn, 1.8.2)
########################################
#
@@ -87,6 +87,7 @@ corenet_tcp_bind_openvpn_port(openvpn_t)
corenet_udp_bind_openvpn_port(openvpn_t)
corenet_tcp_connect_openvpn_port(openvpn_t)
corenet_tcp_connect_http_port(openvpn_t)
+corenet_tcp_connect_http_cache_port(openvpn_t)
corenet_rw_tun_tap_dev(openvpn_t)
corenet_sendrecv_openvpn_server_packets(openvpn_t)
corenet_sendrecv_openvpn_client_packets(openvpn_t)
@@ -115,6 +116,16 @@ tunable_policy(`openvpn_enable_homedirs',`
userdom_read_user_home_content_files(openvpn_t)
')
+tunable_policy(`openvpn_enable_homedirs && use_nfs_home_dirs',`
+ fs_read_nfs_files(openvpn_t)
+ fs_read_nfs_symlinks(openvpn_t)
+')
+
+tunable_policy(`openvpn_enable_homedirs && use_samba_home_dirs',`
+ fs_read_cifs_files(openvpn_t)
+ fs_read_cifs_symlinks(openvpn_t)
+')
+
optional_policy(`
daemontools_service_domain(openvpn_t, openvpn_exec_t)
')