Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: In today's cockpit Fedora 35 test image refresh [1], there is a new SELinux rejection: avc: denied { execute } for pid=57884 comm="chpasswd" name="sss_cache" dev="vda5" ino=39569 scontext=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sssd_exec_t:s0 tclass=file permissive=0 Full journal at [2]. This seems to happen when running `useradd -G libvirt test_user`. Version-Release number of selected component (if applicable): There are a lot of package updates since last week [3], but the relevant ones are: selinux-policy (35.11-1.fc35 -> 35.13-1.fc35) sssd (2.6.1-1.fc35 -> 2.6.3-1.fc35) At first sight, running "sss_cache" from chpasswd seems plausible -- but of course, if it isn't, please reassign to sssd. Thanks! [1] https://github.com/cockpit-project/bots/pull/2897 [2] https://logs.cockpit-project.org/logs/pull-2897-20220205-074019-32a8cfdc-fedora-35-firefox-cockpit-project-cockpit-machines/TestMachinesLifecycle-testLibvirt-fedora-35-127.0.0.2-2201-FAIL.log.gz [3] https://logs.cockpit-project.org/logs/image-refresh-2897-20220205-065151/log
Needs to be addressed in selinux-policy, thanks for reporting.
The problem is being worked on: https://github.com/fedora-selinux/selinux-policy/pull/1046
This doesn't only affect running "chpasswd", but also "chage": avc: denied { execute } for pid=43049 comm="chage" name="sss_cache" dev="vda5" ino=47067 scontext=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sssd_exec_t:s0 tclass=file permissive=0 Simple reproducer: # useradd alice # echo alice:foobar | chpasswd chpasswd: cannot execute /usr/sbin/sss_cache: Permission denied chpasswd: cannot execute /usr/sbin/sss_cache: Permission denied # chage -m 1 -M 90 alice chage: cannot execute /usr/sbin/sss_cache: Permission denied
FEDORA-2022-9681e66715 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-9681e66715
FEDORA-2022-9681e66715 has been pushed to the Fedora 35 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-9681e66715` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-9681e66715 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2022-9681e66715 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.