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.
There is a php config option to turn off huge pages if this can't be supported in containers, though I assume this was working in the RHEL7 containers (haven't checked) so need to work out why it started failing now.
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/RHSA-2019:3403
Description of problem: AVC happens when php container is run, but only on x86_64. Version-Release number of selected component (if applicable): selinux-policy-3.14.1-52.el8 How reproducible: Steps to Reproduce: 1. podman run --rm -ti brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel8/php-72:1-11 php -v 2. ausearch -m avc -i -ts recent Actual results: ---- type=PROCTITLE msg=audit(14/02/19 06:11:24.785:8127) : proctitle=php -v type=SYSCALL msg=audit(14/02/19 06:11:24.785:8127) : arch=x86_64 syscall=mmap success=no exit=EACCES(Permission denied) a0=0x55f272a00000 a1=0x200000 a2=PROT_READ|PROT_WRITE|PROT_EXEC a3=MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS|MAP_HUGETLB items=0 ppid=28117 pid=28127 auid=root uid=unknown(1001) gid=root euid=unknown(1001) suid=unknown(1001) fsuid=unknown(1001) egid=root sgid=root fsgid=root tty=pts0 ses=149 comm=php exe=/usr/bin/php subj=system_u:system_r:container_t:s0:c402,c500 key=(null) type=AVC msg=audit(14/02/19 06:11:24.785:8127) : avc: denied { execute } for pid=28127 comm=php path=/anon_hugepage (deleted) dev="hugetlbfs" ino=2454127 scontext=system_u:system_r:container_t:s0:c402,c500 tcontext=system_u:object_r:hugetlbfs_t:s0 tclass=file permissive=0 Expected results: no avc Additional info: https://dashboard.osci.redhat.com/#/artifact/brew-build/aid/20110649 --> http://artifacts.osci.redhat.com/baseos-ci/brew-build/20/11/06/20110649/https___baseos-jenkins.rhev-ci-vms.eng.rdu2.redhat.com-ci-beaker-docker/108/tests-sheep-61.lab.eng.brq.redhat.com/recipes/1/tasks/1/logs/taskout.log