[shibboleth-sp2] 50/119: Add SELinux call for pidfile.
Ferenc Wágner
wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:49 UTC 2016
This is an automated email from the git hooks/post-receive script.
wferi-guest pushed a commit to annotated tag 1.3.1
in repository shibboleth-sp2.
commit a6db44fb2767c0cefc222726e9c451246e9bdeaa
Author: Scott Cantor <cantor.2 at osu.edu>
Date: Fri Sep 7 20:00:11 2007 +0000
Add SELinux call for pidfile.
---
configs/shibd-redhat.in | 3 +++
1 file changed, 3 insertions(+)
diff --git a/configs/shibd-redhat.in b/configs/shibd-redhat.in
index 8c2447e..de51996 100644
--- a/configs/shibd-redhat.in
+++ b/configs/shibd-redhat.in
@@ -33,6 +33,9 @@ start() {
export SHIBD_PID=$pidfile
touch $pidfile
chown $SHIBD_USER:$SHIBD_USER $pidfile
+ if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
+ /sbin/restorecon $pidfile
+ fi
# daemon function just hangs, so I'm using su directly
su - $SHIBD_USER -c "$shibd -p $pidfile -f &"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git
More information about the Pkg-shibboleth-devel
mailing list