Chris PeBenito 2ba3de
## <summary>full-featured SSL VPN solution</summary>
Chris PeBenito 2ba3de
Chris PeBenito 2ba3de
########################################
Chris PeBenito 2ba3de
## <summary>
Chris PeBenito 2ba3de
##	Allow the specified domain to read
Chris PeBenito 2ba3de
##	OpenVPN configuration files.
Chris PeBenito 2ba3de
## </summary>
Chris PeBenito 2ba3de
## <param name="domain">
Chris PeBenito 2ba3de
##	<summary>
Chris PeBenito 2ba3de
##	Domain allowed access.
Chris PeBenito 2ba3de
##	</summary>
Chris PeBenito 2ba3de
## </param>
Chris PeBenito 2ba3de
#
Chris PeBenito 2ba3de
interface(`openvpn_read_config',`
Chris PeBenito 2ba3de
	gen_require(`
Chris PeBenito 2ba3de
		type openvpn_etc_t;
Chris PeBenito 2ba3de
	')
Chris PeBenito 2ba3de
Chris PeBenito 2ba3de
	files_search_etc($1)
Chris PeBenito 2ba3de
	allow $1 openvpn_etc_t:dir r_dir_perms;
Chris PeBenito 2ba3de
	allow $1 openvpn_etc_t:file r_file_perms;
Chris PeBenito 2ba3de
	allow $1 openvpn_etc_t:lnk_file { getattr read };
Chris PeBenito 2ba3de
')