Chris PeBenito f1e604
## <summary>Net Saint / NAGIOS - network monitoring server</summary>
Chris PeBenito f1e604
Chris PeBenito f1e604
########################################
Chris PeBenito f1e604
## <summary>
Chris PeBenito f1e604
##	Allow the specified domain to read
Chris PeBenito f1e604
##	nagios configuration files.
Chris PeBenito f1e604
## </summary>
Chris PeBenito f1e604
## <param name="domain">
Chris PeBenito f1e604
##	<summary>
Chris PeBenito f1e604
##	Domain allowed access.
Chris PeBenito f1e604
##	</summary>
Chris PeBenito f1e604
## </param>
Chris PeBenito f1e604
#
Chris PeBenito f1e604
interface(`nagios_read_config',`
Chris PeBenito f1e604
	gen_require(`
Chris PeBenito f1e604
		type nagios_etc_t;
Chris PeBenito f1e604
	')
Chris PeBenito f1e604
Chris PeBenito f1e604
	allow $1 nagios_etc_t:dir list_dir_perms;
Chris PeBenito f1e604
	allow $1 nagios_etc_t:file r_file_perms;
Chris PeBenito f1e604
	files_search_etc($1)
Chris PeBenito f1e604
')
Chris PeBenito f1e604
Chris PeBenito f1e604
########################################
Chris PeBenito f1e604
## <summary>
Chris PeBenito f1e604
##	Allow the specified domain to read
Chris PeBenito f1e604
##	nagios temporary files.
Chris PeBenito f1e604
## </summary>
Chris PeBenito f1e604
## <param name="domain">
Chris PeBenito f1e604
##	<summary>
Chris PeBenito f1e604
##	Domain allowed access.
Chris PeBenito f1e604
##	</summary>
Chris PeBenito f1e604
## </param>
Chris PeBenito f1e604
#
Chris PeBenito f1e604
interface(`nagios_read_tmp_files',`
Chris PeBenito f1e604
	gen_require(`
Chris PeBenito f1e604
		type nagios_tmp_t;
Chris PeBenito f1e604
	')
Chris PeBenito f1e604
Chris PeBenito f1e604
	allow $1 nagios_tmp_t:file r_file_perms;
Chris PeBenito f1e604
	files_search_tmp($1)
Chris PeBenito f1e604
')
Chris PeBenito f1e604
Chris PeBenito f1e604
########################################
Chris PeBenito f1e604
## <summary>
Chris PeBenito f1e604
##	Execute the nagios CGI with
Chris PeBenito f1e604
##	a domain transition.
Chris PeBenito f1e604
## </summary>
Chris PeBenito f1e604
## <param name="domain">
Chris PeBenito f1e604
##	<summary>
Chris PeBenito f1e604
##	Domain allowed access.
Chris PeBenito f1e604
##	</summary>
Chris PeBenito f1e604
## </param>
Chris PeBenito f1e604
#
Chris PeBenito f1e604
interface(`nagios_domtrans_cgi',`
Chris PeBenito f1e604
	gen_require(`
Chris PeBenito f1e604
		type nagios_cgi_t, nagios_cgi_exec_t;
Chris PeBenito f1e604
	')
Chris PeBenito f1e604
Chris PeBenito f1e604
	domain_auto_trans($1,nagios_cgi_exec_t,nagios_cgi_t)
Chris PeBenito f1e604
	allow nagios_cgi_t $1:fd use;
Chris PeBenito f1e604
	allow nagios_cgi_t $1:fifo_file rw_file_perms;
Chris PeBenito f1e604
	allow nagios_cgi_t $1:process sigchld;
Chris PeBenito f1e604
')