[node-patches] Change in ovirt-node[ovirt-3.6]: semodule: Avoid AVC for replacing hostname

fabiand at redhat.com fabiand at redhat.com
Mon Nov 23 17:13:19 UTC 2015


Hello Douglas Schilling Landgraf,

I'd like you to do a code review.  Please visit

    https://gerrit.ovirt.org/49030

to review the following change.

Change subject: semodule: Avoid AVC for replacing hostname
......................................................................

semodule: Avoid AVC for replacing hostname

type=AVC msg=audit(1447891832.084:276): avc:  denied  { open } for  pid=15948 comm="systemd-hostnam" path="/etc/hostname" dev="tmpfs" ino=94978 scontext=system_u:system_r:systemd_hostnamed_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/30/49030/1

diff --git a/semodule/ovirt.te.in b/semodule/ovirt.te.in
index 9a28815..48c2851 100644
--- a/semodule/ovirt.te.in
+++ b/semodule/ovirt.te.in
@@ -39,6 +39,7 @@
     type unconfined_t;
     type unlabeled_t;
     type user_tmpfs_t;
+    type user_tmp_t;
     type var_log_t;
     type var_lib_t;
     type virt_cache_t;
@@ -148,6 +149,7 @@
 @SEMODULE_WITH_SYSTEMD at allow systemd_hostnamed_t tmpfs_t:dir { write remove_name search add_name };
 @SEMODULE_WITH_SYSTEMD at allow systemd_hostnamed_t tmpfs_t:file { unlink };
 @SEMODULE_WITH_SYSTEMD at allow systemd_hostnamed_t ovirt_t:dbus send_msg;
+ at SEMODULE_WITH_SYSTEMD@allow systemd_hostnamed_t user_tmp_t:file { unlink open };
 
 #============= hald_t ==============
 optional_policy(`


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

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



More information about the node-patches mailing list