2005-10-14 20:00:07 +00:00
|
|
|
## <summary>Point to Point Protocol daemon creates links in ppp networks</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Use PPP file discriptors.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## Domain allowed access.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ppp_use_fd',`
|
|
|
|
gen_require(`
|
|
|
|
type pppd_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 pppd_t:fd use;
|
|
|
|
')
|
|
|
|
|
2005-11-08 22:00:30 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attempts to inherit
|
|
|
|
## and use PPP file discriptors.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## Domain to not audit.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ppp_dontaudit_use_fd',`
|
|
|
|
gen_require(`
|
|
|
|
type pppd_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 pppd_t:fd use;
|
|
|
|
')
|
|
|
|
|
2005-10-14 20:00:07 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
2005-12-05 17:11:14 +00:00
|
|
|
## Send a SIGCHLD signal to PPP.
|
2005-10-14 20:00:07 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## Domain allowed access.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ppp_sigchld',`
|
|
|
|
gen_require(`
|
|
|
|
type pppd_t;
|
|
|
|
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 pppd_t:process sigchld;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
2005-11-08 22:00:30 +00:00
|
|
|
## Send a generic signal to PPP.
|
2005-10-14 20:00:07 +00:00
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## Domain allowed access.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ppp_signal',`
|
|
|
|
gen_require(`
|
|
|
|
type pppd_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 pppd_t:process signal;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute domain in the ppp domain.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## Domain allowed access.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ppp_domtrans',`
|
|
|
|
gen_require(`
|
|
|
|
type pppd_t, pppd_exec_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
corecmd_search_sbin($1)
|
|
|
|
domain_auto_trans($1, pppd_exec_t, pppd_t)
|
|
|
|
|
|
|
|
allow $1 pppd_t:fd use;
|
|
|
|
allow pppd_t $1:fd use;
|
|
|
|
allow pppd_t $1:fifo_file rw_file_perms;
|
|
|
|
allow pppd_t $1:process sigchld;
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Conditionally execute ppp daemon on behalf of a user or staff type.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## Domain allowed access.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ppp_run_cond',`
|
|
|
|
gen_require(`
|
|
|
|
type pppd_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
role $2 types pppd_t;
|
|
|
|
|
|
|
|
tunable_policy(`pppd_for_user',`
|
|
|
|
ppp_domtrans($1)
|
|
|
|
allow pppd_t $3:chr_file rw_term_perms;
|
|
|
|
')
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Unconditionally execute ppp daemon on behalf of a user or staff type.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## Domain allowed access.
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`ppp_run',`
|
|
|
|
gen_require(`
|
|
|
|
type pppd_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
ppp_domtrans($1)
|
|
|
|
role $2 types pppd_t;
|
|
|
|
allow pppd_t $3:chr_file rw_term_perms;
|
|
|
|
')
|