All of lore.kernel.org
 help / color / mirror / Atom feed
From: sven.vermeulen@siphos.be (Sven Vermeulen)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/1] Nagios monitoring needs to read mdstat
Date: Tue, 22 Nov 2011 20:29:25 +0100	[thread overview]
Message-ID: <20111122192925.GA6106@siphos.be> (raw)

In order to succesfully monitor RAID states, the nrpe agent (running in
the nrpe_t domain) needs read access to /proc/mdstat.

Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
---
 nagios.te |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/nagios.te b/nagios.te
index 07017da..6b2c0dd 100644
--- a/nagios.te
+++ b/nagios.te
@@ -193,8 +193,9 @@ files_search_etc(nrpe_t)
 manage_files_pattern(nrpe_t, nrpe_var_run_t, nrpe_var_run_t)
 files_pid_filetrans(nrpe_t, nrpe_var_run_t, file)
 
-kernel_read_system_state(nrpe_t)
 kernel_read_kernel_sysctls(nrpe_t)
+kernel_read_software_raid_state(nrpe_t)
+kernel_read_system_state(nrpe_t)
 
 corecmd_exec_bin(nrpe_t)
 corecmd_exec_shell(nrpe_t)
-- 
1.7.3.4

             reply	other threads:[~2011-11-22 19:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-22 19:29 Sven Vermeulen [this message]
2012-02-08 20:37 ` [refpolicy] [PATCH 1/1] Nagios monitoring needs to read mdstat Christopher J. PeBenito

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111122192925.GA6106@siphos.be \
    --to=sven.vermeulen@siphos.be \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.