[Pkg-voip-commits] [asterisk] 01/01: init: restore SE Linux setting on new directories

tzafrir at debian.org tzafrir at debian.org
Tue Dec 10 14:56:09 UTC 2013


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

tzafrir pushed a commit to branch master
in repository asterisk.

commit 46a024404d112f2e9faef5f78a18dc24eb6e95a6
Author: Tzafrir Cohen <tzafrir at debian.org>
Date:   Tue Dec 10 16:52:51 2013 +0200

    init: restore SE Linux setting on new directories
    
    give correct SE Linux labels to newly created directories.  It won't
    change the result on a non-SE system (Russel Coker).
---
 debian/asterisk.init | 1 +
 debian/changelog     | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/debian/asterisk.init b/debian/asterisk.init
index d653ed9..715b4e9 100644
--- a/debian/asterisk.init
+++ b/debian/asterisk.init
@@ -98,6 +98,7 @@ test -x $DAEMON || exit 0
 
 for dir in /var/run/asterisk /var/log/asterisk /var/log/asterisk/cdr-csv /var/log/asterisk/cdr-custom; do
 	[ -d $dir ] || install -d -o $USER -g $GROUP $dir
+	[ -x /sbin/restorecon ] && /sbin/restorecon $dir
 done
 
 set -e
diff --git a/debian/changelog b/debian/changelog
index 9d4868f..70db72e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+asterisk (1:11.6.0~dfsg-2) UNRELEASED; urgency=low
+
+  * Restore SE Linux settings on directories created in init script
+    (Russell Coker, Closes: #731397). 
+
+ -- Tzafrir Cohen <tzafrir at debian.org>  Tue, 10 Dec 2013 16:50:39 +0200
+
 asterisk (1:11.6.0~dfsg-1) unstable; urgency=low
 
   * New upstream release.

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



More information about the Pkg-voip-commits mailing list