Chris PeBenito 17de1b
## <summary>Net Saint / NAGIOS - network monitoring server</summary>
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito a65fd9
##	Do not audit attempts to read or write nagios
Chris PeBenito a65fd9
##	unnamed pipes.
Chris PeBenito a65fd9
## </summary>
Chris PeBenito a65fd9
## <param name="domain">
Chris PeBenito a65fd9
##	<summary>
Chris PeBenito a65fd9
##	Domain to not audit.
Chris PeBenito a65fd9
##	</summary>
Chris PeBenito a65fd9
## </param>
Chris PeBenito a65fd9
## <rolecap/>
Chris PeBenito a65fd9
#
Chris PeBenito a65fd9
interface(`nagios_dontaudit_rw_pipes',`
Chris PeBenito a65fd9
	gen_require(`
Chris PeBenito a65fd9
		type nagios_t;
Chris PeBenito a65fd9
	')
Chris PeBenito a65fd9
Chris PeBenito a65fd9
	dontaudit $1 nagios_t:fifo_file rw_fifo_file_perms;
Chris PeBenito a65fd9
')
Chris PeBenito a65fd9
Chris PeBenito a65fd9
########################################
Chris PeBenito a65fd9
## <summary>
Chris PeBenito 17de1b
##	Allow the specified domain to read
Chris PeBenito 17de1b
##	nagios configuration files.
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(`nagios_read_config',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type nagios_etc_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
	allow $1 nagios_etc_t:dir list_dir_perms;
Chris PeBenito c0868a
	allow $1 nagios_etc_t:file read_file_perms;
Chris PeBenito 17de1b
	files_search_etc($1)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Allow the specified domain to read
Chris PeBenito 17de1b
##	nagios temporary files.
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(`nagios_read_tmp_files',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type nagios_tmp_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito c0868a
	allow $1 nagios_tmp_t:file read_file_perms;
Chris PeBenito 17de1b
	files_search_tmp($1)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute the nagios CGI with
Chris PeBenito 17de1b
##	a domain transition.
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(`nagios_domtrans_cgi',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type nagios_cgi_t, nagios_cgi_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
	domtrans_pattern($1, nagios_cgi_exec_t, nagios_cgi_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
## <summary>
Chris PeBenito 17de1b
##	Execute the nagios NRPE with
Chris PeBenito 17de1b
##	a domain transition.
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(`nagios_domtrans_nrpe',`
Chris PeBenito 17de1b
	gen_require(`
Chris PeBenito 17de1b
		type nrpe_t, nrpe_exec_t;
Chris PeBenito 17de1b
	')
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
	domtrans_pattern($1, nrpe_exec_t, nrpe_t)
Chris PeBenito 17de1b
')