summaryrefslogtreecommitdiffstats
path: root/pki/base/ocsp/shared
diff options
context:
space:
mode:
authoralee <alee@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-05-26 00:46:23 +0000
committeralee <alee@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-05-26 00:46:23 +0000
commitc8db7c3df8ecbb28a164b8a118146cf6ea737481 (patch)
treed66707b0b9b1f486def913bb36eac5d8c70c1b38 /pki/base/ocsp/shared
parent6b0cd0582bfc23b5fe7a75504302c8ebb00ba411 (diff)
downloadpki-c8db7c3df8ecbb28a164b8a118146cf6ea737481.tar.gz
pki-c8db7c3df8ecbb28a164b8a118146cf6ea737481.tar.xz
pki-c8db7c3df8ecbb28a164b8a118146cf6ea737481.zip
Bugzilla Bug #495157 - SELinux prevents CA from using nethsm pkcs11 module
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@492 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/ocsp/shared')
-rwxr-xr-xpki/base/ocsp/shared/etc/init.d/httpd3
1 files changed, 3 insertions, 0 deletions
diff --git a/pki/base/ocsp/shared/etc/init.d/httpd b/pki/base/ocsp/shared/etc/init.d/httpd
index f57de338a..cb74c1ab4 100755
--- a/pki/base/ocsp/shared/etc/init.d/httpd
+++ b/pki/base/ocsp/shared/etc/init.d/httpd
@@ -380,6 +380,9 @@ start()
chown $TOMCAT_USER:$TOMCAT_GROUP $CATALINA_PID
[ -x /sbin/restorecon ] && /sbin/restorecon $CATALINA_PID
+ # restore context for ncipher hsm
+ [ -x /sbin/restorecon ] && [ -d /dev/nfast ] && /sbin/restorecon -R /dev/nfast
+
# Always initialize CLASSPATH to start looking
# in the local PKI classes directory . . .
CLASSPATH=/usr/share/[PKI_FLAVOR]/classes