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.

Bug 1867577

Summary: SELinux prevents nginx from talking to resolved, breaking OCSP stapling
Product: Red Hat Enterprise Linux 8 Reporter: Felix Schwarz <fschwarz>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: affix, athmanem, hello, jeremy, jkaluza, jorton, luhliari, lvrabec, mmalik, pavel.lisy, plautrba, ssekidde, wtogami
Target Milestone: betaFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 09:31:31 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:

Description Felix Schwarz 2020-08-10 12:05:04 UTC
OCSP stapling is not working for me with nginx when using SELinux in "enforcing" mode. nginx logs:

  nginx: [warn] "ssl_stapling" ignored, host not found in OCSP responder "ocsp.int-x3.letsencrypt.org" in the certificate …


nginx config:
    …
    ssl_stapling on;
    ssl_stapling_verify on;
    resolver 8.8.8.8;


# audit2why < /var/log/audit/audit.log

…

type=USER_AVC msg=audit(1597060799.922:106357): pid=987 uid=81 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc:  denied  { send_msg } for msgtype=method_call interface=org.freedesktop.resolve1.Manager member=ResolveHostname dest=org.freedesktop.resolve1 spid=52863 tpid=1050 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:system_r:systemd_resolved_t:s0 tclass=dbus permissive=0  exe="/usr/bin/dbus-daemon" sauid=81 hostname=? addr=? terminal=?'UID="dbus" AUID="unset" SAUID="dbus"

	Was caused by:
		Missing type enforcement (TE) allow rule.

		You can use audit2allow to generate a loadable module to allow this access.


I'm running systemd-resolved as my resolver.

Comment 1 Felix Schwarz 2020-08-10 12:06:20 UTC
btw: This seems to work on Fedora 32.

Comment 3 Zdenek Pytela 2021-04-21 09:31:31 UTC
This issue has been resolved in Fedora:
https://github.com/fedora-selinux/selinux-policy/pull/394

and in RHEL 8.3, too:
https://bugzilla.redhat.com/show_bug.cgi?id=1852378

*** This bug has been marked as a duplicate of bug 1852378 ***