Bug 1445519
Summary: | CA Server installation with HSM fails | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Asha Akkiangady <aakkiang> |
Component: | pki-core | Assignee: | Jack Magne <jmagne> |
Status: | CLOSED ERRATA | QA Contact: | Asha Akkiangady <aakkiang> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.4 | CC: | aakkiang, arubin, jmagne, mharmsen, mrhodes |
Target Milestone: | rc | Keywords: | Regression, TestBlocker |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | pki-core-10.4.1-7.el7 | Doc Type: | No Doc Update |
Doc Text: |
This whole issue only appeared during development when some selinux issues sprouted. The user will never know that there was an issue by the time of shipment.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-08-01 22:50:57 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1447436 | ||
Bug Blocks: | 1393633 |
Description
Asha Akkiangady
2017-04-25 21:05:12 UTC
Upstream ticket: https://pagure.io/dogtagpki/issue/2660 After some arduous debugging, I finally at least figured out, (with a quick assist from Matt), what is going on. It turns out that ONLY when running out our server, JSS can not get a full list of all the modules registered into the NSS db associated with the CA. What was most vexing is that the "TokenInfo" java tool, we ship with the server, shows the nfast token just fine in it's list. This tool makes uses of the same code that is used when the CA starts up and calls JSS to get a list of modules and tokens. Upon suggestion of Matt I took the box in question and put SELinux into permissive mode. Magically our tomcat server could get a correct list of modules. The theory is that the server is not being allowed to contact / load the library for the nfast module, associated with the hsm. I suspect we have an issue with the selinux policy, but specific to our server running under tomcat. The reason for this is because one of our Java tools running standalone without tomcat suffer no such issue. Here is an example of a denial I got when trying to start an already installed server by putting selinux back into enforcing mode. time->Tue May 2 03:34:36 2017 type=SYSCALL msg=audit(1493688876.988:458325): arch=c000003e syscall=2 success=no exit=-13 a0=7f69cc73a660 a1=80000 a2=7f69cc6ea250 a3=6b6362696c2f3131 items=0 ppid=1 pid=19365 auid=4294967295 uid=17 gid=17 euid=17 suid=17 fsuid=17 egid=17 sgid=17 fsgid=17 tty=(none) ses=4294967295 comm="java" exe="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-9.b14.el7.x86_64/jre/bin/java" subj=system_u:system_r:tomcat_t:s0 key=(null) type=AVC msg=audit(1493688876.988:458325): avc: denied { search } for pid=19365 comm="java" name="nfast" dev="dm-0" ino=566293 scontext=system_u:system_r:tomcat_t:s0 tcontext=unconfined_u:object_r:pki_common_t:s0 tclass=dir RHCS subsystems installation with nCipher and LunaSA HSMs are successful with following selinux policy build: selinux-policy-3.13.1-152.el7.noarch selinux-policy-targeted-3.13.1-152.el7.noarch commit 5e5eb07b90340eb0e46ab4a1ac76a5f77646f134 Author: Matthew Harmsen <mharmsen> Date: Tue May 30 09:23:55 2017 -0600 Updated minimum selinux-policy-targeted runtime requirement. - Bugzilla Bug #1445519 - CA Server installation with HSM fails Tested in version: pki-server-10.4.1-9.el7.noarch selinux-policy-3.13.1-162.el7.noarch selinux-policy-targeted-3.13.1-162.el7.noarch RHCS subsystems CA, KRA, OCSP, TKS and TPS install with both Thales and LunaSA HSM is successful. Marking the bug verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:2110 |