Vinzenz Feenstra has uploaded a new change for review.

Change subject: agent: Call restorecon on pidfile
......................................................................

agent: Call restorecon on pidfile

Change-Id: I8729ce8018566b400846e0d639dfdb6b11d51862
Signed-off-by: Vinzenz Feenstra <vfeen...@redhat.com>
---
M ovirt-guest-agent/ovirt-guest-agent
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-guest-agent 
refs/changes/01/11301/1

diff --git a/ovirt-guest-agent/ovirt-guest-agent 
b/ovirt-guest-agent/ovirt-guest-agent
index cbe856a..5528516 100644
--- a/ovirt-guest-agent/ovirt-guest-agent
+++ b/ovirt-guest-agent/ovirt-guest-agent
@@ -34,6 +34,7 @@
     if [ ! -f ${pidfile} ]; then
         /bin/touch ${pidfile}
         /bin/chown ovirtagent:ovirtagent ${pidfile}
+        [ -x /sbin/restorecon ] && /sbin/restorecon ${pidfile}
     fi
     daemon --pidfile=${pidfile} --user=ovirtagent $agentd -p ${pidfile} -d 
$OPTIONS
     RETVAL=$?


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8729ce8018566b400846e0d639dfdb6b11d51862
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-guest-agent
Gerrit-Branch: master
Gerrit-Owner: Vinzenz Feenstra <vfeen...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to