mooli tayer has uploaded a new change for review.

Change subject: Avoid calling restorecon on a nonexistent dir.
......................................................................

Avoid calling restorecon on a nonexistent dir.

/var/log/core is only created when vdsm service goes up.
If vdsm never ran on the machine we might get:
restorecon:  lstat(/var/log/core) failed:  No such file or directory

Change-Id: Icd0d14193d9306944649d7ab0ee19edf2ca29ae7
Signed-off-by: Mooli Tayer <mta...@redhat.com>
---
M vdsm.spec.in
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/90/21290/1

diff --git a/vdsm.spec.in b/vdsm.spec.in
index 7730f57..0ad4a46 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -645,7 +645,7 @@
 
 # hack until we replace core dump with abrt
 /usr/sbin/semanage fcontext -a -t virt_cache_t '/var/log/core(/.*)?'
-/sbin/restorecon -R -v /var/log/core
+/sbin/restorecon -R -v /var/log
 
 %if 0%{?rhel}
 if [ "$1" -eq 1 ] ; then


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icd0d14193d9306944649d7ab0ee19edf2ca29ae7
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: mooli tayer <mta...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to