Chris PeBenito a1fcff
## <summary>Virtual Private Networking client</summary>
Chris PeBenito a1fcff
Chris PeBenito a1fcff
########################################
Chris PeBenito a1fcff
## <summary>
Chris PeBenito a1fcff
##	Execute VPN clients in the vpnc domain.
Chris PeBenito a1fcff
## </summary>
Chris PeBenito a1fcff
## <param name="domain">
Chris PeBenito a1fcff
##	The type of the process performing this action.
Chris PeBenito a1fcff
## </param>
Chris PeBenito a1fcff
#
Chris PeBenito a1fcff
interface(`vpn_domtrans',`
Chris PeBenito a1fcff
	gen_require(`
Chris PeBenito a1fcff
		type vpnc_t, vpnc_exec_t;
Chris PeBenito a1fcff
		class process sigchld;
Chris PeBenito a1fcff
		class fd use;
Chris PeBenito a1fcff
		class fifo_file rw_file_perms;
Chris PeBenito a1fcff
	')
Chris PeBenito a1fcff
Chris PeBenito a1fcff
	domain_auto_trans($1,vpnc_exec_t,vpnc_t)
Chris PeBenito a1fcff
Chris PeBenito a1fcff
	allow $1 vpnc_t:fd use;
Chris PeBenito a1fcff
	allow vpnc_t $1:fd use;
Chris PeBenito a1fcff
	allow vpnc_t $1:fifo_file rw_file_perms;
Chris PeBenito a1fcff
	allow vpnc_t $1:process sigchld;
Chris PeBenito a1fcff
')
Chris PeBenito a1fcff
Chris PeBenito a1fcff
########################################
Chris PeBenito a1fcff
## <summary>
Chris PeBenito a1fcff
##	Execute VPN clients in the vpnc domain, and
Chris PeBenito a1fcff
##	allow the specified role the vpnc domain.
Chris PeBenito a1fcff
## </summary>
Chris PeBenito a1fcff
## <param name="domain">
Chris PeBenito a1fcff
##	The type of the process performing this action.
Chris PeBenito a1fcff
## </param>
Chris PeBenito a1fcff
## <param name="role">
Chris PeBenito a1fcff
##	The role to be allowed the vpnc domain.
Chris PeBenito a1fcff
## </param>
Chris PeBenito a1fcff
## <param name="terminal">
Chris PeBenito a1fcff
##	The type of the terminal allow the vpnc domain to use.
Chris PeBenito a1fcff
## </param>
Chris PeBenito a1fcff
#
Chris PeBenito a1fcff
interface(`vpn_run',`
Chris PeBenito a1fcff
	gen_require(`
Chris PeBenito a1fcff
		type vpnc_t;
Chris PeBenito a1fcff
		class chr_file rw_term_perms;
Chris PeBenito a1fcff
	')
Chris PeBenito a1fcff
Chris PeBenito a1fcff
	vpn_domtrans($1)
Chris PeBenito a1fcff
	role $2 types vpnc_t;
Chris PeBenito a1fcff
	allow vpnc_t $3:chr_file rw_term_perms;
Chris PeBenito a1fcff
')