|
Chris PeBenito |
e08118 |
## <summary>Point to Point Protocol daemon creates links in ppp networks</summary>
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
########################################
|
|
Chris PeBenito |
e08118 |
## <summary>
|
|
Chris PeBenito |
e08118 |
## Use PPP file discriptors.
|
|
Chris PeBenito |
e08118 |
## </summary>
|
|
Chris PeBenito |
e08118 |
## <param name="domain">
|
|
Chris PeBenito |
e08118 |
## Domain allowed access.
|
|
Chris PeBenito |
e08118 |
## </param>
|
|
Chris PeBenito |
e08118 |
#
|
|
Chris PeBenito |
e08118 |
interface(`ppp_use_fd',`
|
|
Chris PeBenito |
e08118 |
gen_require(`
|
|
Chris PeBenito |
e08118 |
type pppd_t;
|
|
Chris PeBenito |
e08118 |
')
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
allow $1 pppd_t:fd use;
|
|
Chris PeBenito |
e08118 |
')
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
########################################
|
|
Chris PeBenito |
e08118 |
## <summary>
|
|
Chris PeBenito |
e08118 |
## Allow domain to send sigchld to parent of PPP domain type.
|
|
Chris PeBenito |
e08118 |
## </summary>
|
|
Chris PeBenito |
e08118 |
## <param name="domain">
|
|
Chris PeBenito |
e08118 |
## Domain allowed access.
|
|
Chris PeBenito |
e08118 |
## </param>
|
|
Chris PeBenito |
e08118 |
#
|
|
Chris PeBenito |
e08118 |
interface(`ppp_sigchld',`
|
|
Chris PeBenito |
e08118 |
gen_require(`
|
|
Chris PeBenito |
e08118 |
type pppd_t;
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
')
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
allow $1 pppd_t:process sigchld;
|
|
Chris PeBenito |
e08118 |
')
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
########################################
|
|
Chris PeBenito |
e08118 |
## <summary>
|
|
Chris PeBenito |
e08118 |
## Allow domain to send a signal to PPP domain type.
|
|
Chris PeBenito |
e08118 |
## </summary>
|
|
Chris PeBenito |
e08118 |
## <param name="domain">
|
|
Chris PeBenito |
e08118 |
## Domain allowed access.
|
|
Chris PeBenito |
e08118 |
## </param>
|
|
Chris PeBenito |
e08118 |
#
|
|
Chris PeBenito |
e08118 |
interface(`ppp_signal',`
|
|
Chris PeBenito |
e08118 |
gen_require(`
|
|
Chris PeBenito |
e08118 |
type pppd_t;
|
|
Chris PeBenito |
e08118 |
')
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
allow $1 pppd_t:process signal;
|
|
Chris PeBenito |
e08118 |
')
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
########################################
|
|
Chris PeBenito |
e08118 |
## <summary>
|
|
Chris PeBenito |
e08118 |
## Execute domain in the ppp domain.
|
|
Chris PeBenito |
e08118 |
## </summary>
|
|
Chris PeBenito |
e08118 |
## <param name="domain">
|
|
Chris PeBenito |
e08118 |
## Domain allowed access.
|
|
Chris PeBenito |
e08118 |
## </param>
|
|
Chris PeBenito |
e08118 |
#
|
|
Chris PeBenito |
e08118 |
interface(`ppp_domtrans',`
|
|
Chris PeBenito |
e08118 |
gen_require(`
|
|
Chris PeBenito |
e08118 |
type pppd_t, pppd_exec_t;
|
|
Chris PeBenito |
e08118 |
')
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
corecmd_search_sbin($1)
|
|
Chris PeBenito |
e08118 |
domain_auto_trans($1, pppd_exec_t, pppd_t)
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
allow $1 pppd_t:fd use;
|
|
Chris PeBenito |
e08118 |
allow pppd_t $1:fd use;
|
|
Chris PeBenito |
e08118 |
allow pppd_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
e08118 |
allow pppd_t $1:process sigchld;
|
|
Chris PeBenito |
e08118 |
')
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
########################################
|
|
Chris PeBenito |
e08118 |
## <summary>
|
|
Chris PeBenito |
e08118 |
## Conditionally execute ppp daemon on behalf of a user or staff type.
|
|
Chris PeBenito |
e08118 |
## </summary>
|
|
Chris PeBenito |
e08118 |
## <param name="domain">
|
|
Chris PeBenito |
e08118 |
## Domain allowed access.
|
|
Chris PeBenito |
e08118 |
## </param>
|
|
Chris PeBenito |
e08118 |
#
|
|
Chris PeBenito |
e08118 |
interface(`ppp_run_cond',`
|
|
Chris PeBenito |
e08118 |
gen_require(`
|
|
Chris PeBenito |
e08118 |
type pppd_t;
|
|
Chris PeBenito |
e08118 |
')
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
role $2 types pppd_t;
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
tunable_policy(`pppd_for_user',`
|
|
Chris PeBenito |
e08118 |
ppp_domtrans($1)
|
|
Chris PeBenito |
e08118 |
allow pppd_t $3:chr_file rw_term_perms;
|
|
Chris PeBenito |
e08118 |
')
|
|
Chris PeBenito |
e08118 |
')
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
########################################
|
|
Chris PeBenito |
e08118 |
## <summary>
|
|
Chris PeBenito |
e08118 |
## Unconditionally execute ppp daemon on behalf of a user or staff type.
|
|
Chris PeBenito |
e08118 |
## </summary>
|
|
Chris PeBenito |
e08118 |
## <param name="domain">
|
|
Chris PeBenito |
e08118 |
## Domain allowed access.
|
|
Chris PeBenito |
e08118 |
## </param>
|
|
Chris PeBenito |
e08118 |
#
|
|
Chris PeBenito |
e08118 |
interface(`ppp_run',`
|
|
Chris PeBenito |
e08118 |
gen_require(`
|
|
Chris PeBenito |
e08118 |
type pppd_t;
|
|
Chris PeBenito |
e08118 |
')
|
|
Chris PeBenito |
e08118 |
|
|
Chris PeBenito |
e08118 |
ppp_domtrans($1)
|
|
Chris PeBenito |
e08118 |
role $2 types pppd_t;
|
|
Chris PeBenito |
e08118 |
allow pppd_t $3:chr_file rw_term_perms;
|
|
Chris PeBenito |
e08118 |
')
|