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 7a5e2d
## <param name="role">
Chris PeBenito 7a5e2d
##	<summary>
Chris PeBenito 7a5e2d
##	The role to be allowed to manage the radius 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(`radius_admin',`
Chris PeBenito 7a5e2d
	gen_require(`
Chris PeBenito 7a5e2d
		type radius_t, radius_etc_t, radius_log_t;
Chris PeBenito 7a5e2d
		type radius_etc_rw_t, radius_var_lib_t, radius_var_run_t;
Chris PeBenito 7a5e2d
	')
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	allow $1 radius_t:process { ptrace signal_perms getattr };
Chris PeBenito 7a5e2d
	ps_process_pattern($1, radius_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_etc($1)
Chris PeBenito 7a5e2d
	manage_files_pattern($1, radius_etc_t, radius_etc_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	logging_list_logs($1)
Chris PeBenito 7a5e2d
	manage_files_pattern($1, radius_log_t, radius_log_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	manage_files_pattern($1, radius_etc_rw_t, radius_etc_rw_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_var_lib($1)
Chris PeBenito 7a5e2d
	manage_files_pattern($1, radius_var_lib_t, radius_var_lib_t)
Chris PeBenito 7a5e2d
Chris PeBenito 7a5e2d
	files_list_pids($1)
Chris PeBenito 7a5e2d
	manage_files_pattern($1, radius_var_run_t, radius_var_run_t)
Chris PeBenito 7a5e2d
')