selinux-refpolicy/policy/modules/admin/vpn.if
2006-12-12 20:08:08 +00:00

70 lines
1.3 KiB
Plaintext

## <summary>Virtual Private Networking client</summary>
########################################
## <summary>
## Execute VPN clients in the vpnc domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`vpn_domtrans',`
gen_require(`
type vpnc_t, vpnc_exec_t;
')
domtrans_pattern($1,vpnc_exec_t,vpnc_t)
')
########################################
## <summary>
## Execute VPN clients in the vpnc domain, and
## allow the specified role the vpnc domain.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <param name="role">
## <summary>
## The role to be allowed the vpnc domain.
## </summary>
## </param>
## <param name="terminal">
## <summary>
## The type of the terminal allow the vpnc domain to use.
## </summary>
## </param>
## <rolecap/>
#
interface(`vpn_run',`
gen_require(`
type vpnc_t;
')
vpn_domtrans($1)
role $2 types vpnc_t;
allow vpnc_t $3:chr_file rw_term_perms;
')
########################################
## <summary>
## Send generic signals to VPN clients.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`vpn_signal',`
gen_require(`
type vpnc_t;
')
allow $1 vpnc_t:process signal;
')