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] Allow mdadm to generate uevents (write to /sys/.../uevent) when raids are (dis)assembled
Date: Wed, 2 Feb 2011 20:37:20 +0100	[thread overview]
Message-ID: <20110202193720.GA12476@siphos.be> (raw)

The mdadm application will write into /sys/.../uevent whenever arrays are
assembled or disassembled. 

Signed-off-by: Sven Vermeulen <sven.vermeulen@siphos.be>
---
 policy/modules/system/raid.te |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/policy/modules/system/raid.te b/policy/modules/system/raid.te
index 09845c4..e5e61c5 100644
--- a/policy/modules/system/raid.te
+++ b/policy/modules/system/raid.te
@@ -42,7 +42,7 @@ kernel_getattr_core_if(mdadm_t)
 corecmd_exec_bin(mdadm_t)
 corecmd_exec_shell(mdadm_t)
 
-dev_read_sysfs(mdadm_t)
+dev_rw_sysfs(mdadm_t)
 # Ignore attempts to read every device file
 dev_dontaudit_getattr_all_blk_files(mdadm_t)
 dev_dontaudit_getattr_all_chr_files(mdadm_t)
-- 
1.7.3.4

             reply	other threads:[~2011-02-02 19:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-02 19:37 Sven Vermeulen [this message]
2011-02-14 14:01 ` [refpolicy] [PATCH 1/1] Allow mdadm to generate uevents (write to /sys/.../uevent) when raids are (dis)assembled 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=20110202193720.GA12476@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.