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 2143302 - SELinux is preventing httpd from map access on the chr_file /dev/zero
Summary: SELinux is preventing httpd from map access on the chr_file /dev/zero
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: httpd
Version: 7.9
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Luboš Uhliarik
QA Contact: rhel-cs-infra-services-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-16 14:57 UTC by Siddharth
Modified: 2023-01-30 16:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-16 16:18:36 UTC
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-139649 0 None None None 2022-11-16 15:37:19 UTC
Red Hat Knowledge Base (Solution) 6985789 0 None None None 2022-11-16 15:39:17 UTC

Description Siddharth 2022-11-16 14:57:40 UTC
Description of problem: After updating jbcs-httpd from  2.4.37 to 2.4.51, the Webserver not starting giving "SELinux is preventing /opt/rh/jbcs-httpd24/root/usr/sbin/httpd from map access on the chr_file /dev/zero."


Version-Release number of selected component (if applicable):


How reproducible: Update jbcs-httpd from  2.4.37 to 2.4.51 and start httpd service with SE enforcing.

Actual results:

# journalctl -xe:

Okt 27 07:24:33 TestLab7 systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit jbcs-httpd24-httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit jbcs-httpd24-httpd.service has begun starting up.
Okt 27 07:24:33 TestLab7 systemd[1]: jbcs-httpd24-httpd.service: main process exited, code=exited, status=1/FAILURE
Okt 27 07:24:33 TestLab7 systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit jbcs-httpd24-httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit jbcs-httpd24-httpd.service has failed.
--
-- The result is failed.
Okt 27 07:24:33 TestLab7 systemd[1]: Unit jbcs-httpd24-httpd.service entered failed state.
Okt 27 07:24:33 TestLab7 systemd[1]: jbcs-httpd24-httpd.service failed.
Okt 27 07:24:33 TestLab7 dbus[537]: [system] Activating service name='org.fedoraproject.Setroubleshootd' (using servicehelper)
Okt 27 07:24:33 TestLab7 polkitd[531]: Unregistered Authentication Agent for unix-process:3954:146366644 (system bus name :1.273625, object path /
Okt 27 07:24:34 TestLab7 dbus[537]: [system] Successfully activated service 'org.fedoraproject.Setroubleshootd'
Okt 27 07:24:35 TestLab7 setroubleshoot[3979]: failed to retrieve rpm info for /dev/zero
Okt 27 07:24:35 TestLab7 postfix/smtpd[3992]: connect from localhost[127.0.0.1]
Okt 27 07:24:35 TestLab7 postfix/smtpd[3992]: C56F23338F66: client=localhost[127.0.0.1]
Okt 27 07:24:35 TestLab7 postfix/cleanup[3995]: C56F23338F66: message-id=<20221027052435.C56F23338F66@TestLab7>
Okt 27 07:24:35 TestLab7 postfix/smtpd[3992]: disconnect from localhost[127.0.0.1]
Okt 27 07:24:35 TestLab7 setroubleshoot[3979]: SELinux is preventing /opt/rh/jbcs-httpd24/root/usr/sbin/httpd from map access on the chr_file /dev
Okt 27 07:24:35 TestLab7 postfix/qmgr[1354]: C56F23338F66: from=<SELinux_Troubleshoot@TestLab7>, size=3130, nrcpt=1 (queue active)
Okt 27 07:24:35 TestLab7 python[3979]: SELinux is preventing /opt/rh/jbcs-httpd24/root/usr/sbin/httpd from map access on the chr_file /dev/zero.


Expected results:

It should work with the update.


Additional info:

It is working when set SE permissive.

Comment 4 Coty Sutherland 2022-11-16 16:49:18 UTC
JBCS issue created at https://issues.redhat.com/browse/JBCS-1426. Please continue discussion there.


Note You need to log in before you can comment on or make changes to this bug.