2006-04-06 15:03:23 +00:00
|
|
|
## <summary>Net Saint / NAGIOS - network monitoring server</summary>
|
|
|
|
|
2009-06-11 15:00:48 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Do not audit attempts to read or write nagios
|
|
|
|
## unnamed pipes.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain to not audit.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
## <rolecap/>
|
|
|
|
#
|
|
|
|
interface(`nagios_dontaudit_rw_pipes',`
|
|
|
|
gen_require(`
|
|
|
|
type nagios_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
dontaudit $1 nagios_t:fifo_file rw_fifo_file_perms;
|
|
|
|
')
|
|
|
|
|
2006-04-06 15:03:23 +00:00
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Allow the specified domain to read
|
|
|
|
## nagios configuration files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
2006-09-06 22:07:25 +00:00
|
|
|
## <rolecap/>
|
2006-04-06 15:03:23 +00:00
|
|
|
#
|
|
|
|
interface(`nagios_read_config',`
|
|
|
|
gen_require(`
|
|
|
|
type nagios_etc_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 nagios_etc_t:dir list_dir_perms;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow $1 nagios_etc_t:file read_file_perms;
|
2006-04-06 15:03:23 +00:00
|
|
|
files_search_etc($1)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Allow the specified domain to read
|
|
|
|
## nagios temporary files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`nagios_read_tmp_files',`
|
|
|
|
gen_require(`
|
|
|
|
type nagios_tmp_t;
|
|
|
|
')
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow $1 nagios_tmp_t:file read_file_perms;
|
2006-04-06 15:03:23 +00:00
|
|
|
files_search_tmp($1)
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute the nagios CGI with
|
|
|
|
## a domain transition.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`nagios_domtrans_cgi',`
|
|
|
|
gen_require(`
|
|
|
|
type nagios_cgi_t, nagios_cgi_exec_t;
|
|
|
|
')
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
domtrans_pattern($1, nagios_cgi_exec_t, nagios_cgi_t)
|
2006-04-06 15:03:23 +00:00
|
|
|
')
|
2006-04-27 16:37:40 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Execute the nagios NRPE with
|
|
|
|
## a domain transition.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`nagios_domtrans_nrpe',`
|
|
|
|
gen_require(`
|
|
|
|
type nrpe_t, nrpe_exec_t;
|
|
|
|
')
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
domtrans_pattern($1, nrpe_exec_t, nrpe_t)
|
2006-04-27 16:37:40 +00:00
|
|
|
')
|