Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionMiroslav Vadkerti
2011-11-02 14:00:25 UTC
Description of problem:
When testing bug 693863 on RHEL6 with enabled netHSM 6000 hardware I got the denials below when trying to start httpd with SSLCryptoDevice chil:
time->Wed Nov 2 09:52:43 2011
type=SYSCALL msg=audit(1320241963.697:47230): arch=c000003e syscall=42 success=yes exit=0 a0=d a1=7fff1acdf470 a2=6e a3=9 items=0 ppid=23024 pid=23025 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=6096 comm="httpd" exe="/usr/sbin/httpd" subj=unconfined_u:system_r:httpd_t:s0 key=(null)
type=AVC msg=audit(1320241963.697:47230): avc: denied { connectto } for pid=23025 comm="httpd" path="/dev/nfast/nserver" scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:system_r:initrc_t:s0 tclass=unix_stream_socket
type=AVC msg=audit(1320241963.697:47230): avc: denied { write } for pid=23025 comm="httpd" name="nserver" dev=devtmpfs ino=18237 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=sock_file
The engine is installed in /opt and the it's libraries have
system_u:object_r:lib_t:s0
context
Version-Release number of selected component (if applicable):
selinux-policy-3.7.19-120.el6.noarch
How reproducible:
100%
Steps to Reproduce:
1. Have a machine connected to netHSM 6000
2. Install mod_ssl and httpd
2. Add SSLCryptoDevice chil to ssl.conf
3. Restart httpd
Actual results:
httpd fails to start
Expected results:
httpd starts and crypto engine is usable
Additional info:
Setting bin_t context on the used library doesn't help:
# chcon -t bin_t /opt/nfast/toolkits/hwcrhk/libnfhwcrhk.so
Note to tester:
Please contact me when testing this bug
Well it seems to be badly designed package. It should not be using /dev for this socket, it should be in /var/run.
I think the only solution is to build custom policy to allow this access.
Miroslav Vadkerti I suggest you request policy be started on this in Fedora.