Chris PeBenito 17de1b
## <summary>Zebra border gateway protocol network routing service</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Read the configuration files for zebra.
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(`zebra_read_config',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type zebra_conf_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	files_search_etc($1)
Chris PeBenito c0868a
	allow $1 zebra_conf_t:dir list_dir_perms;
Chris PeBenito ce8a52
	read_files_pattern($1, zebra_conf_t, zebra_conf_t)
Chris PeBenito ce8a52
	read_lnk_files_pattern($1, zebra_conf_t, zebra_conf_t)
Chris PeBenito ce8a52
')
Chris PeBenito ce8a52
Chris PeBenito ce8a52
########################################
Chris PeBenito ce8a52
## <summary>
Chris PeBenito ce8a52
##	All of the rules required to administrate 
Chris PeBenito ce8a52
##	an zebra environment
Chris PeBenito ce8a52
## </summary>
Chris PeBenito ce8a52
## <param name="domain">
Chris PeBenito ce8a52
##	<summary>
Chris PeBenito ce8a52
##	Domain allowed access.
Chris PeBenito ce8a52
##	</summary>
Chris PeBenito ce8a52
## </param>
Chris PeBenito ce8a52
## <rolecap/>
Chris PeBenito ce8a52
#
Chris PeBenito ce8a52
interface(`zebra_admin',`
Chris PeBenito ce8a52
	gen_require(`
Chris PeBenito ce8a52
		type zebra_t, zebra_tmp_t, zebra_log_t;
Chris PeBenito ce8a52
		type zebra_conf_t, zebra_var_run_t;
Chris PeBenito ce8a52
	')
Chris PeBenito ce8a52
Chris PeBenito ce8a52
	allow $1 zebra_t:process { ptrace signal_perms getattr };
Chris PeBenito ce8a52
	read_files_pattern($1, zebra_t, zebra_t)
Chris PeBenito ce8a52
	        
Chris PeBenito ce8a52
	files_list_tmp($1)
Chris PeBenito ce8a52
	manage_files_pattern($1, zebra_tmp_t, zebra_tmp_t)
Chris PeBenito ce8a52
Chris PeBenito ce8a52
	logging_list_logs($1)
Chris PeBenito ce8a52
	manage_files_pattern($1, zebra_log_t, zebra_log_t)
Chris PeBenito ce8a52
Chris PeBenito ce8a52
	files_list_etc($1)
Chris PeBenito ce8a52
	manage_files_pattern($1, zebra_conf_t, zebra_conf_t)
Chris PeBenito ce8a52
Chris PeBenito ce8a52
	files_list_pids($1)
Chris PeBenito ce8a52
	manage_files_pattern($1, zebra_var_run_t, zebra_var_run_t)
Chris PeBenito 17de1b
')