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.
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 (selinux-policy bug fix and enhancement update), 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-2023:2483
Description of problem: SELinux is preventing /usr/sbin/ns-slapd from 'search' accesses on the directory /proc/sys/fs/binfmt_misc. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that ns-slapd should be allowed search access on the binfmt_misc directory by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'ns-slapd' --raw | audit2allow -M my-nsslapd # semodule -X 300 -i my-nsslapd.pp Additional Information: Source Context system_u:system_r:dirsrv_t:s0 Target Context system_u:object_r:sysctl_fs_t:s0 Target Objects /proc/sys/fs/binfmt_misc [ dir ] Source ns-slapd Source Path /usr/sbin/ns-slapd Port <Unknown> Host (removed) Source RPM Packages 389-ds-base-2.0.14-1.el9.x86_64 Target RPM Packages SELinux Policy RPM selinux-policy-targeted-34.1.29-1.el9_0.2.noarch Local Policy RPM selinux-policy-targeted-34.1.29-1.el9_0.2.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 5.14.0-70.26.1.el9_0.x86_64 #1 SMP PREEMPT Fri Sep 2 16:07:40 EDT 2022 x86_64 x86_64 Alert Count 11 First Seen 2022-10-14 16:22:27 AEST Last Seen 2022-10-14 16:22:27 AEST Raw Audit Messages type=AVC msg=audit(1665728547.594:1821144): avc: denied { search } for pid=38068 comm="ns-slapd" name="fs" dev="proc" ino=13413 scontext=system_u:system_r:dirsrv_t:s0 tcontext=system_u:object_r:sysctl_fs_t:s0 tclass=dir permissive=0 type=SYSCALL msg=audit(1665728547.594:1821144): arch=x86_64 syscall=newfstatat success=no exit=EACCES a0=ffffff9c a1=7f806a02f032 a2=7f80705edd30 a3=0 items=1 ppid=1 pid=38068 auid=4294967295 uid=389 gid=389 euid=389 suid=389 fsuid=389 egid=389 sgid=389 fsgid=389 tty=(none) ses=4294967295 comm=ns-slapd exe=/usr/sbin/ns-slapd subj=system_u:system_r:dirsrv_t:s0 key=(null) type=CWD msg=audit(1665728547.594:1821144): cwd=/var/log/dirsrv/slapd-EXAMPLE-COM type=PATH msg=audit(1665728547.594:1821144): item=0 name=/proc/sys/fs/binfmt_misc nametype=UNKNOWN cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0 Hash: ns-slapd,dirsrv_t,sysctl_fs_t,dir,search