[node-patches] Change in ovirt-node[master]: ovirt.te.in: add rule for lldpad

Code Review gerrit at ovirt.org
Mon Jan 9 20:32:42 UTC 2017


>From Douglas Schilling Landgraf <dougsland at redhat.com>:

Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: ovirt.te.in: add rule for lldpad
......................................................................

ovirt.te.in: add rule for lldpad

Avoid AVC during boot for lldpad:
type=AVC msg=audit(1482459394.399:25): avc:  denied  { read write }
for  pid=1297 comm="lldpad" name="lldpad.state" dev="tmpfs"
ino=18471 scontext=system_u:system_r:lldpad_t:s0
tcontext=system_u:object_r:tmpfs_t:s0 tclass=file

Change-Id: I1f610cac7c18a14a4520948200f6d9a5113975a3
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1406673
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M semodule/ovirt.te.in
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/78/69878/1

diff --git a/semodule/ovirt.te.in b/semodule/ovirt.te.in
index e9350c3..5ee5031 100644
--- a/semodule/ovirt.te.in
+++ b/semodule/ovirt.te.in
@@ -590,6 +590,14 @@
 ')
 
 
+#============= lldpad_t ==============
+optional_policy(`
+    require {
+        type lldpad_t;
+    }
+    allow lldpad_t tmpfs_t:file { read write open };
+')
+
 #============= mandb_t ==============
 optional_policy(`
     require {


-- 
To view, visit https://gerrit.ovirt.org/69878
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1f610cac7c18a14a4520948200f6d9a5113975a3
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>


More information about the node-patches mailing list