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 1417742

Summary: SELinux is preventing /usr/libexec/sssd/sssd_be from using the 'setpgid' accesses on a process.
Product: Red Hat Enterprise Linux 7 Reporter: David Jaša <djasa>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:931d77db4d4edc4577ba6de6ca17cf957aba12cc5b39c491bc74bd92c890014c
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 14:28:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Jaša 2017-01-30 20:28:42 UTC
Description of problem:
SELinux is preventing /usr/libexec/sssd/sssd_be from using the 'setpgid' accesses on a process.

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

If you believe that sssd_be should be allowed setpgid access on processes labeled sssd_t 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 'sssd_be' --raw | audit2allow -M my-sssdbe
# semodule -i my-sssdbe.pp

Additional Information:
Source Context                system_u:system_r:sssd_t:s0
Target Context                system_u:system_r:sssd_t:s0
Target Objects                Unknown [ process ]
Source                        sssd_be
Source Path                   /usr/libexec/sssd/sssd_be
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           sssd-common-1.15.0-1.el7.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-117.el7.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.10.0-551.el7.x86_64 #1 SMP Fri
                              Jan 27 15:12:33 EST 2017 x86_64 x86_64
Alert Count                   16
First Seen                    2017-01-30 20:46:47 CET
Last Seen                     2017-01-30 21:05:53 CET
Local ID                      bb95d1fe-b26b-4e9d-a08a-6dd9b62eef86

Raw Audit Messages
type=AVC msg=audit(1485806753.903:271): avc:  denied  { setpgid } for  pid=24811 comm="sssd_be" scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:system_r:sssd_t:s0 tclass=process


type=SYSCALL msg=audit(1485806753.903:271): arch=x86_64 syscall=setpgid success=no exit=EACCES a0=60eb a1=60eb a2=60eb a3=7ffe3f529d50 items=0 ppid=988 pid=24811 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=sssd_be exe=/usr/libexec/sssd/sssd_be subj=system_u:system_r:sssd_t:s0 key=(null)

Hash: sssd_be,sssd_t,sssd_t,process,setpgid

Version-Release number of selected component:
selinux-policy-3.13.1-117.el7.noarch

Additional info:
reporter:       libreport-2.1.11.1
hashmarkername: setroubleshoot
kernel:         3.10.0-551.el7.x86_64
reproducible:   Not sure how to reproduce the problem
type:           libreport

Comment 1 Milos Malik 2017-01-31 09:56:13 UTC
I believe this bug is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1416780.

Comment 3 Lukas Vrabec 2017-02-01 14:28:06 UTC

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