|
Chris PeBenito |
17de1b |
## <summary>Point to Point Protocol daemon creates links in ppp networks</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Use PPP file discriptors.
|
|
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 |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ppp_use_fds',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type pppd_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 pppd_t:fd use;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Do not audit attempts to inherit
|
|
Chris PeBenito |
17de1b |
## and use PPP file discriptors.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain to not audit.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ppp_dontaudit_use_fds',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type pppd_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dontaudit $1 pppd_t:fd use;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Send a SIGCHLD signal to PPP.
|
|
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 |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ppp_sigchld',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type pppd_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 pppd_t:process sigchld;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Send a generic signal to PPP.
|
|
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 |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ppp_signal',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type pppd_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 pppd_t:process signal;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute domain in the ppp domain.
|
|
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 |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ppp_domtrans',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type pppd_t, pppd_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8021cb |
corecmd_search_bin($1)
|
|
Chris PeBenito |
c0868a |
domtrans_pattern($1, pppd_exec_t, pppd_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Conditionally execute ppp daemon on behalf of a user or staff type.
|
|
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(`ppp_run_cond',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type pppd_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
role $2 types pppd_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
tunable_policy(`pppd_for_user',`
|
|
Chris PeBenito |
17de1b |
ppp_domtrans($1)
|
|
Chris PeBenito |
17de1b |
allow pppd_t $3:chr_file rw_term_perms;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Unconditionally execute ppp daemon on behalf of a user or staff type.
|
|
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(`ppp_run',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type pppd_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ppp_domtrans($1)
|
|
Chris PeBenito |
17de1b |
role $2 types pppd_t;
|
|
Chris PeBenito |
17de1b |
allow pppd_t $3:chr_file rw_term_perms;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute domain in the ppp caller.
|
|
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 |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ppp_exec',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type pppd_exec_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
8021cb |
corecmd_search_bin($1)
|
|
Chris PeBenito |
17de1b |
can_exec($1, pppd_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
226c06 |
## Read ppp configuration files.
|
|
Chris PeBenito |
226c06 |
## </summary>
|
|
Chris PeBenito |
226c06 |
## <param name="domain">
|
|
Chris PeBenito |
226c06 |
## <summary>
|
|
Chris PeBenito |
226c06 |
## Domain allowed access.
|
|
Chris PeBenito |
226c06 |
## </summary>
|
|
Chris PeBenito |
226c06 |
## </param>
|
|
Chris PeBenito |
226c06 |
#
|
|
Chris PeBenito |
226c06 |
interface(`ppp_read_config',`
|
|
Chris PeBenito |
226c06 |
gen_require(`
|
|
Chris PeBenito |
226c06 |
type pppd_etc_t;
|
|
Chris PeBenito |
226c06 |
')
|
|
Chris PeBenito |
226c06 |
|
|
Chris PeBenito |
226c06 |
read_files_pattern($1, pppd_etc_t, pppd_etc_t)
|
|
Chris PeBenito |
226c06 |
files_search_etc($1)
|
|
Chris PeBenito |
226c06 |
')
|
|
Chris PeBenito |
226c06 |
|
|
Chris PeBenito |
226c06 |
########################################
|
|
Chris PeBenito |
226c06 |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read PPP-writable 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 |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ppp_read_rw_config',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type pppd_etc_t, pppd_etc_rw_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 pppd_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow $1 pppd_etc_rw_t:file { getattr read };
|
|
Chris PeBenito |
17de1b |
files_search_etc($1)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read PPP secrets.
|
|
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 |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ppp_read_secrets',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type pppd_etc_t, pppd_secret_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 pppd_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
17de1b |
allow $1 pppd_secret_t:file { getattr read };
|
|
Chris PeBenito |
17de1b |
files_search_etc($1)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
8708d9 |
## Read PPP pid files.
|
|
Chris PeBenito |
8708d9 |
## </summary>
|
|
Chris PeBenito |
8708d9 |
## <param name="domain">
|
|
Chris PeBenito |
8708d9 |
## <summary>
|
|
Chris PeBenito |
8708d9 |
## Domain allowed access.
|
|
Chris PeBenito |
8708d9 |
## </summary>
|
|
Chris PeBenito |
8708d9 |
## </param>
|
|
Chris PeBenito |
8708d9 |
#
|
|
Chris PeBenito |
8708d9 |
interface(`ppp_read_pid_files',`
|
|
Chris PeBenito |
8708d9 |
gen_require(`
|
|
Chris PeBenito |
8708d9 |
type pppd_var_run_t;
|
|
Chris PeBenito |
8708d9 |
')
|
|
Chris PeBenito |
8708d9 |
|
|
Chris PeBenito |
c0868a |
allow $1 pppd_var_run_t:file read_file_perms;
|
|
Chris PeBenito |
8708d9 |
')
|
|
Chris PeBenito |
8708d9 |
|
|
Chris PeBenito |
8708d9 |
########################################
|
|
Chris PeBenito |
8708d9 |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Create, read, write, and delete PPP pid 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 |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ppp_manage_pid_files',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type pppd_var_run_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 pppd_var_run_t:file manage_file_perms;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Create, read, write, and delete PPP pid 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 |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`ppp_pid_filetrans',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type pppd_var_run_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_pid_filetrans($1,pppd_var_run_t,file)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
########################################
|
|
Chris PeBenito |
7a5e2d |
## <summary>
|
|
Chris PeBenito |
7a5e2d |
## All of the rules required to administrate
|
|
Chris PeBenito |
7a5e2d |
## an ppp environment
|
|
Chris PeBenito |
7a5e2d |
## </summary>
|
|
Chris PeBenito |
7a5e2d |
## <param name="domain">
|
|
Chris PeBenito |
7a5e2d |
## <summary>
|
|
Chris PeBenito |
7a5e2d |
## Domain allowed access.
|
|
Chris PeBenito |
7a5e2d |
## </summary>
|
|
Chris PeBenito |
7a5e2d |
## </param>
|
|
Chris PeBenito |
7a5e2d |
## <param name="role">
|
|
Chris PeBenito |
7a5e2d |
## <summary>
|
|
Chris PeBenito |
7a5e2d |
## The role to be allowed to manage the ppp domain.
|
|
Chris PeBenito |
7a5e2d |
## </summary>
|
|
Chris PeBenito |
7a5e2d |
## </param>
|
|
Chris PeBenito |
7a5e2d |
## <param name="terminal">
|
|
Chris PeBenito |
7a5e2d |
## <summary>
|
|
Chris PeBenito |
7a5e2d |
## The type of the user terminal.
|
|
Chris PeBenito |
7a5e2d |
## </summary>
|
|
Chris PeBenito |
7a5e2d |
## </param>
|
|
Chris PeBenito |
7a5e2d |
## <rolecap/>
|
|
Chris PeBenito |
7a5e2d |
#
|
|
Chris PeBenito |
7a5e2d |
interface(`ppp_admin',`
|
|
Chris PeBenito |
7a5e2d |
gen_require(`
|
|
Chris PeBenito |
7a5e2d |
type pppd_t, pppd_tmp_t, pppd_log_t, pppd_lock_t;
|
|
Chris PeBenito |
7a5e2d |
type pppd_etc_t, pppd_script_t, pppd_secret_t;
|
|
Chris PeBenito |
7a5e2d |
type pppd_etc_rw_t, pppd_var_lib_t, pppd_var_run_t;
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
type pptp_t, pptp_log_t, pptp_var_run_t;
|
|
Chris PeBenito |
7a5e2d |
')
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
allow $1 pppd_t:process { ptrace signal_perms getattr };
|
|
Chris PeBenito |
7a5e2d |
ps_process_pattern($1, pppd_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
files_list_tmp($1)
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, pppd_tmp_t, pppd_tmp_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
logging_list_logs($1)
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, pppd_log_t, pppd_log_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, pppd_lock_t, pppd_lock_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
files_list_etc($1)
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, pppd_etc_t, pppd_etc_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, pppd_etc_rw_t, pppd_etc_rw_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, pppd_secret_t, pppd_secret_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
files_list_var_lib($1)
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, pppd_var_lib_t, pppd_var_lib_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
files_list_pids($1)
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, pppd_var_run_t), pppd_var_run_t
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
allow $1 pptp_t:process { ptrace signal_perms getattr };
|
|
Chris PeBenito |
7a5e2d |
ps_process_pattern($1, pptp_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, pptp_log_t, pptp_log_t)
|
|
Chris PeBenito |
7a5e2d |
|
|
Chris PeBenito |
7a5e2d |
manage_files_pattern($1, pptp_var_run_t, pptp_var_run_t)
|
|
Chris PeBenito |
7a5e2d |
')
|