From: cantor Date: Fri, 7 Sep 2007 20:00:44 +0000 (+0000) Subject: Add SELinux call for pidfile. X-Git-Tag: 2.4~759 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=f917832746a400e4d7662eb03d19ba5e1a2d5965 Add SELinux call for pidfile. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2458 cb58f699-b61c-0410-a6fe-9272a202ed29 --- diff --git a/configs/shibd-redhat.in b/configs/shibd-redhat.in index e8e9774..68553b0 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 &"