|
Chris PeBenito |
17de1b |
## <summary>full-featured SSL VPN solution</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
72f82c |
## Execute OPENVPN clients in the openvpn domain.
|
|
Chris PeBenito |
72f82c |
## </summary>
|
|
Chris PeBenito |
72f82c |
## <param name="domain">
|
|
Chris PeBenito |
72f82c |
## <summary>
|
|
Chris PeBenito |
72f82c |
## Domain allowed access.
|
|
Chris PeBenito |
72f82c |
## </summary>
|
|
Chris PeBenito |
72f82c |
## </param>
|
|
Chris PeBenito |
72f82c |
#
|
|
Chris PeBenito |
72f82c |
interface(`openvpn_domtrans',`
|
|
Chris PeBenito |
72f82c |
gen_require(`
|
|
Chris PeBenito |
72f82c |
type openvpn_t, openvpn_exec_t;
|
|
Chris PeBenito |
72f82c |
')
|
|
Chris PeBenito |
72f82c |
|
|
Chris PeBenito |
72f82c |
domtrans_pattern($1, openvpn_exec_t, openvpn_t)
|
|
Chris PeBenito |
72f82c |
')
|
|
Chris PeBenito |
72f82c |
|
|
Chris PeBenito |
72f82c |
########################################
|
|
Chris PeBenito |
72f82c |
## <summary>
|
|
Chris PeBenito |
72f82c |
## Execute OPENVPN clients in the openvpn domain, and
|
|
Chris PeBenito |
72f82c |
## allow the specified role the openvpn domain.
|
|
Chris PeBenito |
72f82c |
## </summary>
|
|
Chris PeBenito |
72f82c |
## <param name="domain">
|
|
Chris PeBenito |
72f82c |
## <summary>
|
|
Chris PeBenito |
72f82c |
## Domain allowed access.
|
|
Chris PeBenito |
72f82c |
## </summary>
|
|
Chris PeBenito |
72f82c |
## </param>
|
|
Chris PeBenito |
72f82c |
## <param name="role">
|
|
Chris PeBenito |
72f82c |
## <summary>
|
|
Chris PeBenito |
72f82c |
## The role to be allowed the openvpn domain.
|
|
Chris PeBenito |
72f82c |
## </summary>
|
|
Chris PeBenito |
72f82c |
## </param>
|
|
Chris PeBenito |
72f82c |
## <param name="terminal">
|
|
Chris PeBenito |
72f82c |
## <summary>
|
|
Chris PeBenito |
72f82c |
## The type of the terminal allow the openvpn domain to use.
|
|
Chris PeBenito |
72f82c |
## </summary>
|
|
Chris PeBenito |
72f82c |
## </param>
|
|
Chris PeBenito |
72f82c |
## <rolecap/>
|
|
Chris PeBenito |
72f82c |
#
|
|
Chris PeBenito |
72f82c |
interface(`openvpn_run',`
|
|
Chris PeBenito |
72f82c |
gen_require(`
|
|
Chris PeBenito |
72f82c |
type openvpn_t;
|
|
Chris PeBenito |
72f82c |
')
|
|
Chris PeBenito |
72f82c |
|
|
Chris PeBenito |
72f82c |
openvpn_domtrans($1)
|
|
Chris PeBenito |
72f82c |
role $2 types openvpn_t;
|
|
Chris PeBenito |
72f82c |
allow openvpn_t $3:chr_file rw_term_perms;
|
|
Chris PeBenito |
72f82c |
')
|
|
Chris PeBenito |
72f82c |
|
|
Chris PeBenito |
72f82c |
########################################
|
|
Chris PeBenito |
72f82c |
## <summary>
|
|
Chris PeBenito |
72f82c |
## Send generic signals to OPENVPN clients.
|
|
Chris PeBenito |
72f82c |
## </summary>
|
|
Chris PeBenito |
72f82c |
## <param name="domain">
|
|
Chris PeBenito |
72f82c |
## <summary>
|
|
Chris PeBenito |
72f82c |
## Domain allowed access.
|
|
Chris PeBenito |
72f82c |
## </summary>
|
|
Chris PeBenito |
72f82c |
## </param>
|
|
Chris PeBenito |
72f82c |
#
|
|
Chris PeBenito |
72f82c |
interface(`openvpn_signal',`
|
|
Chris PeBenito |
72f82c |
gen_require(`
|
|
Chris PeBenito |
72f82c |
type openvpn_t;
|
|
Chris PeBenito |
72f82c |
')
|
|
Chris PeBenito |
72f82c |
|
|
Chris PeBenito |
72f82c |
allow $1 openvpn_t:process signal;
|
|
Chris PeBenito |
72f82c |
')
|
|
Chris PeBenito |
72f82c |
|
|
Chris PeBenito |
72f82c |
########################################
|
|
Chris PeBenito |
72f82c |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Allow the specified domain to read
|
|
Chris PeBenito |
17de1b |
## OpenVPN configuration files.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
bbcd3c |
## <rolecap/>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`openvpn_read_config',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type openvpn_etc_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_search_etc($1)
|
|
Chris PeBenito |
c0868a |
allow $1 openvpn_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
c0868a |
read_files_pattern($1,openvpn_etc_t,openvpn_etc_t)
|
|
Chris PeBenito |
c0868a |
read_lnk_files_pattern($1,openvpn_etc_t,openvpn_etc_t)
|
|
Chris PeBenito |
17de1b |
')
|