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
')
Chris PeBenito 06e277
Chris PeBenito 06e277
########################################
Chris PeBenito 06e277
## <summary>
Chris PeBenito 06e277
##	Execute the nagios NRPE with
Chris PeBenito 06e277
##	a domain transition.
Chris PeBenito 06e277
## </summary>
Chris PeBenito 06e277
## <param name="domain">
Chris PeBenito 06e277
##	<summary>
Chris PeBenito 06e277
##	Domain allowed access.
Chris PeBenito 06e277
##	</summary>
Chris PeBenito 06e277
## </param>
Chris PeBenito 06e277
#
Chris PeBenito 06e277
interface(`nagios_domtrans_nrpe',`
Chris PeBenito 06e277
	gen_require(`
Chris PeBenito 06e277
		type nrpe_t, nrpe_exec_t;
Chris PeBenito 06e277
	')
Chris PeBenito 06e277
Chris PeBenito 06e277
	domain_auto_trans($1,nrpe_exec_t,nrpe_t)
Chris PeBenito 06e277
	allow nrpe_t $1:fd use;
Chris PeBenito 06e277
	allow nrpe_t $1:fifo_file rw_file_perms;
Chris PeBenito 06e277
	allow nrpe_t $1:process sigchld;
Chris PeBenito 06e277
')