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 1592026

Summary: SELinux is preventing /usr/libexec/sssd/selinux_child from map access on the file /usr/libexec/sssd/selinux_child
Product: Red Hat Enterprise Linux 7 Reporter: Lukas Slebodnik <lslebodn>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: lvrabec, mgrepl, mmalik, plautrba, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-205.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 10:05:18 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 Lukas Slebodnik 2018-06-16 10:04:18 UTC
SELinux is preventing /usr/libexec/sssd/selinux_child from map access on the file /usr/libexec/sssd/selinux_child.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that selinux_child should be allowed map access on the selinux_child file 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 'selinux_child' --raw | audit2allow -M my-selinuxchild
# semodule -i my-selinuxchild.pp


Additional Information:
Source Context                system_u:system_r:sssd_t:s0
Target Context                system_u:object_r:sssd_selinux_manager_exec_t:s0
Target Objects                /usr/libexec/sssd/selinux_child [ file ]
Source                        selinux_child
Source Path                   /usr/libexec/sssd/selinux_child
Port                          <Unknown>
Host                          host.testrelm.test
Source RPM Packages           sssd-ipa-1.16.2-1.el7.x86_64
Target RPM Packages           sssd-ipa-1.16.2-1.el7.x86_64
Policy RPM                    selinux-policy-3.13.1-204.el7.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     host.testrelm.test
Platform                      Linux host.testrelm.test 3.10.0-905.el7.x86_64 #1
                              SMP Wed Jun 13 13:48:50 EDT 2018 x86_64 x86_64
Alert Count                   2
First Seen                    2018-06-16 05:01:19 EDT
Last Seen                     2018-06-16 05:04:59 EDT
Local ID                      cfe04bf6-0bcf-4506-9c8d-3ac500bda753

Raw Audit Messages
type=AVC msg=audit(1529139899.967:667): avc:  denied  { map } for  pid=56108 comm="selinux_child" path="/usr/libexec/sssd/selinux_child" dev="dm-0" ino=67428986 scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:object_r:sssd_selinux_manager_exec_t:s0 tclass=file permissive=0


type=SYSCALL msg=audit(1529139899.967:667): arch=x86_64 syscall=execve success=no exit=EACCES a0=7f21db2483f8 a1=565109ce8660 a2=565109cdc410 a3=7ffd8e6788e0 items=2 ppid=55839 pid=56108 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=selinux_child exe=/usr/libexec/sssd/selinux_child subj=system_u:system_r:sssd_t:s0 key=(null)

type=CWD msg=audit(1529139899.967:667): cwd=/

type=PATH msg=audit(1529139899.967:667): item=0 name=/usr/libexec/sssd/selinux_child inode=67428986 dev=fd:00 mode=0104750 ouid=0 ogid=995 rdev=00:00 obj=system_u:object_r:sssd_selinux_manager_exec_t:s0 objtype=NORMAL cap_fp=0000000000000000 cap_fi=0000000000000000 cap_fe=0 cap_fver=0

type=PATH msg=audit(1529139899.967:667): item=1 name=/lib64/ld-linux-x86-64.so.2 inode=33612526 dev=fd:00 mode=0100755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:ld_so_t:s0 objtype=NORMAL cap_fp=0000000000000000 cap_fi=0000000000000000 cap_fe=0 cap_fver=0

Hash: selinux_child,sssd_t,sssd_selinux_manager_exec_t,file,map

Comment 2 Lukas Slebodnik 2018-06-18 15:40:12 UTC
BTW based on this BZ and BZ1592022 , BZ1592025
I would say that there might be more mmap related AVCs + syscall=execve.

Comment 6 errata-xmlrpc 2018-10-30 10:05:18 UTC
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/RHBA-2018:3111