Nagios NRPE client should be able to read its own configuration file

Currently, the nagios nrpe_t definition has no read access to its own
nrpe_etc_t. I suspect this to be a copy/paste problem. Since the nrpe
configuration file is stored in /etc/nagios (nagios_etc_t), NRPE does need
search privileges in nagios_etc_t. This is easily accomplished through
read_files_pattern.

Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
This commit is contained in:
Sven Vermeulen 2011-08-13 21:07:19 +02:00 committed by Chris PeBenito
parent 5f1189f0fe
commit 8d238a8308
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ allow nrpe_t self:tcp_socket create_stream_socket_perms;
domtrans_pattern(nrpe_t, nagios_checkdisk_plugin_exec_t, nagios_checkdisk_plugin_t)
read_files_pattern(nrpe_t, nagios_etc_t, nagios_etc_t)
read_files_pattern(nrpe_t, nagios_etc_t, nrpe_etc_t)
files_search_etc(nrpe_t)
manage_files_pattern(nrpe_t, nrpe_var_run_t, nrpe_var_run_t)