Chris PeBenito 17de1b
## <summary>RADIUS authentication and accounting server.</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 33c7e6
##	Use radius over a UDP connection.  (Deprecated)
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(`radius_use',`
Chris PeBenito 33c7e6
	refpolicywarn(`$0($*) has been deprecated.')
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 radius 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 e87221
## <param name="role">
Chris PeBenito e87221
##	<summary>
Chris PeBenito e87221
##	Role allowed access.
Chris PeBenito e87221
##	</summary>
Chris PeBenito e87221
## </param>
Chris PeBenito 7a5e2d
## <rolecap/>
Chris PeBenito 7a5e2d
#
Chris PeBenito 7a5e2d
interface(`radius_admin',`
Chris PeBenito 7a5e2d
	gen_require(`
Chris PeBenito 8f3a0a
		type radiusd_t, radiusd_etc_t, radiusd_log_t;
Chris PeBenito 8f3a0a
		type radiusd_etc_rw_t, radiusd_var_lib_t, radiusd_var_run_t;
Chris PeBenito e87221
		type radiusd_initrc_exec_t;
Chris PeBenito 7a5e2d
	')
Chris PeBenito 7a5e2d
Dominick Grift 4eaffd
	allow $1 radiusd_t:process { ptrace signal_perms };
Chris PeBenito 8f3a0a
	ps_process_pattern($1, radiusd_t)
Chris PeBenito 7a5e2d
Chris PeBenito e87221
	init_labeled_script_domtrans($1, radiusd_initrc_exec_t)
Chris PeBenito e87221
	domain_system_change_exemption($1)
Chris PeBenito e87221
	role_transition $2 radiusd_initrc_exec_t system_r;
Chris PeBenito e87221
	allow $2 system_r;
Chris PeBenito e87221
Chris PeBenito 7a5e2d
	files_list_etc($1)
Chris PeBenito e87221
	admin_pattern($1, radiusd_etc_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	logging_list_logs($1)
Chris PeBenito e87221
	admin_pattern($1, radiusd_log_t)
Chris PeBenito 7a5e2d
Chris PeBenito e87221
	admin_pattern($1, radiusd_etc_rw_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_var_lib($1)
Chris PeBenito e87221
	admin_pattern($1, radiusd_var_lib_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_pids($1)
Chris PeBenito e87221
	admin_pattern($1, radiusd_var_run_t)
Chris PeBenito 7a5e2d
')