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 7395f8
##	Send ppp a kill signal
Chris PeBenito 7395f8
## </summary>
Chris PeBenito 7395f8
## <param name="domain">
Chris PeBenito 7395f8
##	<summary>
Chris PeBenito 7395f8
##	Domain allowed access.
Chris PeBenito 7395f8
##	</summary>
Chris PeBenito 7395f8
## </param>
Chris PeBenito 7395f8
#
Chris PeBenito 7395f8
#
Chris PeBenito 7395f8
interface(`ppp_kill',`
Chris PeBenito 7395f8
	gen_require(`
Chris PeBenito 7395f8
		type pppd_t;
Chris PeBenito 7395f8
	')
Chris PeBenito 7395f8
Chris PeBenito 7395f8
	allow $1 pppd_t:process sigkill;
Chris PeBenito 7395f8
')
Chris PeBenito 7395f8
Chris PeBenito 7395f8
########################################
Chris PeBenito 7395f8
## <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 ae3386
##	Send a generic signull to PPP.
Chris PeBenito ae3386
## </summary>
Chris PeBenito ae3386
## <param name="domain">
Chris PeBenito ae3386
##	<summary>
Chris PeBenito ae3386
##	Domain allowed access.
Chris PeBenito ae3386
##	</summary>
Chris PeBenito ae3386
## </param>
Chris PeBenito ae3386
#
Chris PeBenito ae3386
interface(`ppp_signull',`
Chris PeBenito ae3386
	gen_require(`
Chris PeBenito ae3386
		type pppd_t;
Chris PeBenito ae3386
	')
Chris PeBenito ae3386
Chris PeBenito ae3386
	allow $1 pppd_t:process signull;
Chris PeBenito ae3386
')
Chris PeBenito ae3386
Chris PeBenito ae3386
########################################
Chris PeBenito ae3386
## <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 8f3a0a
## <param name="role">
Chris PeBenito 8f3a0a
##	<summary>
Chris PeBenito 8f3a0a
##	The role to allow the ppp domain.
Chris PeBenito 8f3a0a
##	</summary>
Chris PeBenito 8f3a0a
## </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
	')
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 8f3a0a
## <param name="role">
Chris PeBenito 8f3a0a
##	<summary>
Chris PeBenito 8f3a0a
##	The role to allow the ppp domain.
Chris PeBenito 8f3a0a
##	</summary>
Chris PeBenito 8f3a0a
## </param>
Chris PeBenito bbcd3c
## <rolecap/>
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
interface(`ppp_run',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 82b5d2
		type pppd_t, pptp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	ppp_domtrans($1)
Chris PeBenito 17de1b
	role $2 types pppd_t;
Chris PeBenito 82b5d2
	role $2 types pptp_t;
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 82d277
	allow $1 pppd_etc_rw_t:file read_file_perms;
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 82d277
	allow $1 pppd_secret_t:file read_file_perms;
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 0bfccd
	files_pid_filetrans($1, pppd_var_run_t, file)
Chris PeBenito 17de1b
')
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
########################################
Chris PeBenito 7a5e2d
## <summary>
Chris PeBenito 7395f8
##	Execute ppp server in the ntpd domain.
Chris PeBenito 7395f8
## </summary>
Chris PeBenito 7395f8
## <param name="domain">
Chris PeBenito 7395f8
##	<summary>
Chris PeBenito 7395f8
##	The type of the process performing this action.
Chris PeBenito 7395f8
##	</summary>
Chris PeBenito 7395f8
## </param>
Chris PeBenito 7395f8
#
Chris PeBenito 7395f8
interface(`ppp_initrc_domtrans',`
Chris PeBenito 7395f8
	gen_require(`
Chris PeBenito 7395f8
		type pppd_initrc_exec_t;
Chris PeBenito 7395f8
	')
Chris PeBenito 7395f8
Chris PeBenito 7395f8
	init_labeled_script_domtrans($1, pppd_initrc_exec_t)
Chris PeBenito 7395f8
')
Chris PeBenito 7395f8
Chris PeBenito 7395f8
########################################
Chris PeBenito 7395f8
## <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
## <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 8f3a0a
		type pppd_etc_t, pppd_secret_t;
Chris PeBenito 8f3a0a
		type pppd_etc_rw_t, pppd_var_run_t;
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
		type pptp_t, pptp_log_t, pptp_var_run_t;
Chris PeBenito 7395f8
 		type pppd_initrc_exec_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 2a9837
Chris PeBenito 7395f8
	ppp_initrc_domtrans($1)
Chris PeBenito 7395f8
	domain_system_change_exemption($1)
Chris PeBenito 7395f8
	role_transition $2 pppd_initrc_exec_t system_r;
Chris PeBenito 7395f8
	allow $2 system_r;
Chris PeBenito 7395f8
Chris PeBenito 7a5e2d
	files_list_tmp($1)
Chris PeBenito 7395f8
	admin_pattern($1, pppd_tmp_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	logging_list_logs($1)
Chris PeBenito 7395f8
	admin_pattern($1, pppd_log_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7395f8
	admin_pattern($1, pppd_lock_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_etc($1)
Chris PeBenito 7395f8
	admin_pattern($1, pppd_etc_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7395f8
	admin_pattern($1, pppd_etc_rw_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7395f8
	admin_pattern($1, pppd_secret_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_pids($1)
Chris PeBenito 7395f8
	admin_pattern($1, 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 7395f8
	admin_pattern($1, pptp_log_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7395f8
	admin_pattern($1, pptp_var_run_t)
Chris PeBenito 7a5e2d
')