[Pkg-xen-changes] [xen] 01/01: Apply SELinux labels to directories created by initscripts.

Ian James Campbell ijc at moszumanska.debian.org
Fri Aug 21 19:55:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

ijc pushed a commit to branch feature/bug764912
in repository xen.

commit 46a8d71bec748f3c6dfb98bf4ba3973a5b3cd951
Author: Ian Campbell <ijc at hellion.org.uk>
Date:   Thu Nov 6 11:32:39 2014 +0000

    Apply SELinux labels to directories created by initscripts.
    
    Patch from Russell Coker. (Closes: #764912)
---
 debian/changelog                 | 8 ++++++++
 debian/xen-utils-common.xen.init | 2 ++
 2 files changed, 10 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 70be498..d4b87b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+xen (4.5.1~rc1-1) UNRELEASED; urgency=medium
+
+  [ Ian Campbell ]
+  * Apply SELinux labels to directories created by initscripts. Patch from
+    Russell Coker. (Closes: #764912)
+
+ -- Ian Campbell <ijc at debian.org>  Fri, 21 Aug 2015 20:54:28 +0100
+
 xen (4.5.1~rc1-1) experimental; urgency=medium
 
   [ Ian Campbell ]
diff --git a/debian/xen-utils-common.xen.init b/debian/xen-utils-common.xen.init
index fe5d6f3..41db20e 100644
--- a/debian/xen-utils-common.xen.init
+++ b/debian/xen-utils-common.xen.init
@@ -66,6 +66,7 @@ env_setup()
 	[ -d /run/xen ] && return 0
 
 	mkdir -m 700 /run/xen
+	[ -x /sbin/restorecon ] && /sbin/restorecon /run/xen
 }
 
 xend_start()
@@ -189,6 +190,7 @@ xenstored_start()
 	start-stop-daemon --start --quiet --pidfile "$XENSTORED_PIDFILE" --exec "$XENSTORED" --test > /dev/null \
 		|| return 1
 	[ -d "$XENSTORED_DIR" ] || mkdir -p "$XENSTORED_DIR"
+	[ -x /sbin/restorecon ] && /sbin/restorecon "$XENSTORED_DIR"
 	export XENSTORED_ROOTDIR="$XENSTORED_DIR"
 	start-stop-daemon --start --quiet --pidfile "$XENSTORED_PIDFILE" --exec "$XENSTORED" -- \
 		$XENSTORED_ARGS --pid-file="$XENSTORED_PIDFILE" \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-xen/xen.git



More information about the Pkg-xen-changes mailing list