Blame refpolicy/policy/modules/admin/vpn.if
|
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 |
a77e65 |
## Domain allowed access.
|
|
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 |
')
|
|
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 |
a77e65 |
## Domain allowed access.
|
|
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 |
')
|
|
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 |
')
|
|
Chris PeBenito |
a77e65 |
|
|
Chris PeBenito |
a77e65 |
########################################
|
|
Chris PeBenito |
a77e65 |
## <summary>
|
|
Chris PeBenito |
a77e65 |
## Send generic signals to VPN clients.
|
|
Chris PeBenito |
a77e65 |
## </summary>
|
|
Chris PeBenito |
a77e65 |
## <param name="domain">
|
|
Chris PeBenito |
a77e65 |
## Domain allowed access.
|
|
Chris PeBenito |
a77e65 |
## </param>
|
|
Chris PeBenito |
a77e65 |
#
|
|
Chris PeBenito |
a77e65 |
interface(`vpn_signal',`
|
|
Chris PeBenito |
a77e65 |
gen_require(`
|
|
Chris PeBenito |
a77e65 |
type vpnc_t;
|
|
Chris PeBenito |
a77e65 |
')
|
|
Chris PeBenito |
a77e65 |
|
|
Chris PeBenito |
a77e65 |
allow $1 vpnc_t:process signal;
|
|
Chris PeBenito |
a77e65 |
')
|