Chris PeBenito 17de1b
## <summary>Privacy enhancing web proxy.</summary>
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
########################################
Chris PeBenito 7a5e2d
## <summary>
Chris PeBenito 7a5e2d
##	All of the rules required to administrate 
Chris PeBenito 7a5e2d
##	an privoxy 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 5843d0
## <param name="role">
Chris PeBenito 5843d0
##	<summary>
Chris PeBenito 5843d0
##	Role allowed access.
Chris PeBenito 5843d0
##	</summary>
Chris PeBenito 5843d0
## </param>
Chris PeBenito 7a5e2d
## <rolecap/>
Chris PeBenito 7a5e2d
#
Chris PeBenito 7a5e2d
interface(`privoxy_admin',`
Chris PeBenito 7a5e2d
	gen_require(`
Dominick Grift 2528a2
		type privoxy_t, privoxy_log_t, privoxy_initrc_exec_t;
Chris PeBenito 7a5e2d
		type privoxy_etc_rw_t, privoxy_var_run_t;
Chris PeBenito 7a5e2d
	')
Chris PeBenito 7a5e2d
Dominick Grift 4eaffd
	allow $1 privoxy_t:process { ptrace signal_perms };
Chris PeBenito 7a5e2d
	ps_process_pattern($1, privoxy_t)
Chris PeBenito 7a5e2d
Chris PeBenito 5843d0
	init_labeled_script_domtrans($1, privoxy_initrc_exec_t)
Chris PeBenito 5843d0
	domain_system_change_exemption($1)
Chris PeBenito 5843d0
	role_transition $2 privoxy_initrc_exec_t system_r;
Chris PeBenito 5843d0
	allow $2 system_r;
Chris PeBenito 5843d0
Chris PeBenito 7a5e2d
	logging_list_logs($1)
Chris PeBenito 5843d0
	admin_pattern($1, privoxy_log_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_etc($1)
Chris PeBenito 5843d0
	admin_pattern($1, privoxy_etc_rw_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_pids($1)
Chris PeBenito 5843d0
	admin_pattern($1, privoxy_var_run_t)
Chris PeBenito 7a5e2d
')