2005-09-19 21:17:45 +00:00
|
|
|
## <summary>Virtual Private Networking client</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute VPN clients in the vpnc domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-11 15:28:14 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-19 21:17:45 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`vpn_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type vpnc_t, vpnc_exec_t;
|
|
|
|
')
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
domtrans_pattern($1, vpnc_exec_t, vpnc_t)
|
2005-09-19 21:17:45 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute VPN clients in the vpnc domain, and
|
|
|
|
## allow the specified role the vpnc domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-11 15:28:14 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-19 21:17:45 +00:00
|
|
|
## </param>
|
|
|
|
## <param name="role">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2010-08-03 13:20:22 +00:00
|
|
|
## Role allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2005-09-19 21:17:45 +00:00
|
|
|
## </param>
|
2006-09-06 22:07:25 +00:00
|
|
|
## <rolecap/>
|
2005-09-19 21:17:45 +00:00
|
|
|
#
|
|
|
|
interface(`vpn_run',`
|
|
|
|
gen_require(`
|
|
|
|
type vpnc_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
vpn_domtrans($1)
|
|
|
|
role $2 types vpnc_t;
|
2008-11-05 16:10:46 +00:00
|
|
|
sysnet_run_ifconfig(vpnc_t, $2)
|
2005-09-19 21:17:45 +00:00
|
|
|
')
|
2006-01-11 15:28:14 +00:00
|
|
|
|
2009-03-10 19:32:04 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send VPN clients the kill signal.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`vpn_kill',`
|
|
|
|
gen_require(`
|
|
|
|
type vpnc_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 vpnc_t:process sigkill;
|
|
|
|
')
|
|
|
|
|
2006-01-11 15:28:14 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send generic signals to VPN clients.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-11 15:28:14 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-01-11 15:28:14 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`vpn_signal',`
|
|
|
|
gen_require(`
|
|
|
|
type vpnc_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 vpnc_t:process signal;
|
|
|
|
')
|
2008-02-18 14:55:25 +00:00
|
|
|
|
2009-03-10 19:32:04 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send signull to VPN clients.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`vpn_signull',`
|
|
|
|
gen_require(`
|
|
|
|
type vpnc_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 vpnc_t:process signull;
|
|
|
|
')
|
|
|
|
|
2008-02-18 14:55:25 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Send and receive messages from
|
|
|
|
## Vpnc over dbus.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
2010-06-28 17:06:51 +00:00
|
|
|
interface(`vpn_dbus_chat',`
|
2008-02-18 14:55:25 +00:00
|
|
|
gen_require(`
|
|
|
|
type vpnc_t;
|
|
|
|
class dbus send_msg;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 vpnc_t:dbus send_msg;
|
|
|
|
allow vpnc_t $1:dbus send_msg;
|
|
|
|
')
|
2010-06-28 17:06:51 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Relabelfrom from vpnc socket.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`vpn_relabelfrom_tun_socket',`
|
|
|
|
gen_require(`
|
|
|
|
type vpnc_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 vpnc_t:tun_socket relabelfrom;
|
|
|
|
')
|