Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: vdsm.spec: conditional to reload selinux policy
......................................................................

vdsm.spec: conditional to reload selinux policy

Only reload policy if selinux is enabled

Change-Id: I1d40e6d9dcaac16d74c685e4a6a6d5cb130ac531
Signed-off-by: Douglas Schilling Landgraf <[email protected]>
---
M vdsm.spec.in
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/32/21432/1

diff --git a/vdsm.spec.in b/vdsm.spec.in
index c225c23..3a5d7e9 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -655,8 +655,12 @@
 fi
 
 # hack until we replace core dump with abrt
-/usr/sbin/semanage fcontext -a -t virt_cache_t '/var/log/core(/.*)?'
+/usr/sbin/semanage fcontext -N -a -t virt_cache_t '/var/log/core(/.*)?'
+if /usr/sbin/selinuxenabled ; then
+    /usr/sbin/load_policy
+fi;
 /sbin/restorecon -R -v /var/log/core
+# hack until we replace core dump with abrt
 
 %if 0%{?rhel}
 if [ "$1" -eq 1 ] ; then


-- 
To view, visit http://gerrit.ovirt.org/21432
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1d40e6d9dcaac16d74c685e4a6a6d5cb130ac531
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to