[node-patches] Change in ovirt-node[ovirt-3.6]: ovirt.te.in: update iptables_t rules

Code Review gerrit at ovirt.org
Tue Jan 10 19:02:11 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: update iptables_t rules
......................................................................

ovirt.te.in: update iptables_t rules

Avoid boot AVC:

type=AVC msg=audit(1482319168.924:51): avc:  denied  { read }
for  pid=1998 comm="iptables" name="xtables.lock" dev="tmpfs"
ino=23877 scontext=system_u:system_r:iptables_t:s0-s0:c0.c1023
tcontext=system_u:object_r:var_run_t:s0 tclass=file

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/44/69944/1

diff --git a/semodule/ovirt.te.in b/semodule/ovirt.te.in
index 5ee5031..c87a5cd 100644
--- a/semodule/ovirt.te.in
+++ b/semodule/ovirt.te.in
@@ -485,12 +485,14 @@
         type iptables_t;
         type insmod_t;
         type var_lib_t;
+        type var_run_t;
     }
     allow iptables_t tmpfs_t:dir search;
     allow iptables_t insmod_t:process { siginh rlimitinh noatsecure };
     allow iptables_t user_tmpfs_t:file { read open getattr };
     allow iptables_t var_lib_t:dir { write remove_name create add_name };
     allow iptables_t var_lib_t:file { write create unlink open };
+    allow iptables_t var_run_t:file { read open lock };
 ')
 
 #============= init_t ==============


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

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


More information about the node-patches mailing list