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 2039757 - denied setgid for sss_cache
Summary: denied setgid for sss_cache
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: selinux-policy
Version: 9.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 9.0
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-12 11:40 UTC by Jiri Jaburek
Modified: 2022-05-17 16:12 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-34.1.23-1.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 15:50:10 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-107573 0 None None None 2022-01-12 11:54:14 UTC
Red Hat Product Errata RHBA-2022:3918 0 None None None 2022-05-17 15:50:18 UTC

Internal Links: 2030156

Description Jiri Jaburek 2022-01-12 11:40:57 UTC
Description of problem:

I've noticed this on a bare metal x86_64 system, no clue how to reproduce it to re-try it in permissive, sorry.


time->Tue Jan 11 16:22:21 2022
type=PROCTITLE msg=audit(1641914541.390:120): proctitle=7373735F6361636865002D47
type=SYSCALL msg=audit(1641914541.390:120): arch=c000003e syscall=119 success=yes exit=0 a0=ffffffff a1=0 a2=ffffffff a3=0 items=0 ppid=4915 pid=4920 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="sss_cache" exe="/usr/sbin/sss_cache" subj=system_u:system_r:groupadd_t:s0 key=(null)
type=AVC msg=audit(1641914541.390:120): avc:  denied  { setgid } for  pid=4920 comm="sss_cache" capability=6  scontext=system_u:system_r:groupadd_t:s0 tcontext=system_u:system_r:groupadd_t:s0 tclass=capability permissive=0
----
time->Tue Jan 11 16:22:22 2022
type=PROCTITLE msg=audit(1641914542.623:125): proctitle=7373735F6361636865002D5547
type=SYSCALL msg=audit(1641914542.623:125): arch=c000003e syscall=119 success=yes exit=0 a0=ffffffff a1=0 a2=ffffffff a3=0 items=0 ppid=4922 pid=4925 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="sss_cache" exe="/usr/sbin/sss_cache" subj=system_u:system_r:useradd_t:s0 key=(null)
type=AVC msg=audit(1641914542.623:125): avc:  denied  { setgid } for  pid=4925 comm="sss_cache" capability=6  scontext=system_u:system_r:useradd_t:s0 tcontext=system_u:system_r:useradd_t:s0 tclass=capability permissive=0


# ausearch -ts boot -m avc | audit2allow -r

require {
        type groupadd_t;
        type useradd_t;
        class capability setgid;
}

#============= groupadd_t ==============
allow groupadd_t self:capability setgid;

#============= useradd_t ==============
allow useradd_t self:capability setgid;



Version-Release number of selected component (if applicable):
RHEL-9.0.0-20220108.3
selinux-policy-34.1.20-1.el9.noarch
sssd-common-2.6.1-1.el9.x86_64

Comment 2 Milos Malik 2022-01-12 12:19:47 UTC
This bug is a RHEL-9 version of BZ#2030156.

Comment 4 Zdenek Pytela 2022-02-01 15:24:42 UTC
Commits to backport:
25bdcfdf5 Allow domtrans to sssd_t and role access to sssd
d7ef9cf83 Creating interface sssd_run_sssd()

d33ccb64d (tag: v35.12, patrik/rawhide) Fix badly indented used interfaces
bcc321f17 Allow domain transition to sssd_t

Comment 12 errata-xmlrpc 2022-05-17 15:50:10 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 (new packages: selinux-policy), 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-2022:3918


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