Bug 1767874
| Summary: | Confined users cannot log in to graphical session | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Zdenek Pytela <zpytela> |
| Component: | selinux-policy | Assignee: | Patrik Koncity <pkoncity> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 33 | CC: | amessina, dwalsh, lvrabec, mgrepl, mmalik, pkoncity, plautrba, zpytela |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | selinux-policy-3.14.6-36.fc33 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-03-29 01:19:32 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1767779 | ||
This local policy module helped with logging in: # cat local_iceauth.cil (allow iceauth_t user_tmp_t (dir (write add_name remove_name))) (allow iceauth_t user_tmp_t (file (create link unlink))) (allow pulseaudio_t user_t (unix_dgram_socket (sendto))) (allow user_t pulseaudio_t (process2 (nnp_transition)) This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle. Changing version to 32. Also after login to graphic session appears these AVCs:
----
time->Fri Oct 23 13:39:22 2020
type=AVC msg=audit(1603453162.466:525): avc: denied { setsched } for pid=6383 comm="gnome-keyring-d" scontext=staff_u:staff_r:staff_gkeyringd_t:s0-s0:c0.c1023 tcontext=staff_u:staff_r:staff_gkeyringd_t:s0-s0:c0.c1023 tclass=process permissive=1
----
time->Fri Oct 23 13:40:16 2020
type=AVC msg=audit(1603453216.975:550): avc: denied { signal } for pid=6373 comm="systemd" scontext=staff_u:staff_r:staff_t:s0-s0:c0.c1023 tcontext=staff_u:staff_r:mount_t:s0-s0:c0.c1023 tclass=process permissive=1
for user and sysadm appears similar AVCs.
Merged to rawhide and backported to F33. FEDORA-2021-4d5b1e1f06 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4d5b1e1f06 FEDORA-2021-4d5b1e1f06 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4d5b1e1f06` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4d5b1e1f06 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-4d5b1e1f06 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report. |
Description of problem: Confined users cannot log in to graphical session: Version-Release number of selected component (if applicable): selinux-policy-3.14.5-11.fc32.noarch lightdm-1.30.0-3.fc32.x86_64 How reproducible: always Steps to Reproduce: 1. Log into the graphical environment as a confined user Actual results: An error message appears One of the AVCs logged: ---- type=PROCTITLE msg=audit(11/01/19 15:54:31.833:957) : proctitle=/usr/bin/iceauth source /tmp/.xfsm-ICE-L6Y49Z type=PATH msg=audit(11/01/19 15:54:31.833:957) : item=0 name=/run/user/1005/ inode=335392 dev=00:28 mode=dir,700 ouid=user ogid=user rdev=00:00 obj=system_u:object_r:user_tmp_t:s0 nametype=PARENT cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0 type=CWD msg=audit(11/01/19 15:54:31.833:957) : cwd=/home/user type=SYSCALL msg=audit(11/01/19 15:54:31.833:957) : arch=x86_64 syscall=creat success=no exit=EACCES(Permission denied) a0=0x7ffdc95d5c20 a1=0666 a2=0x0 a3=0x560abf2fd2a0 items=1 ppid=4303 pid=4398 auid=user uid=user gid=user euid=user suid=user fsuid=user egid=user sgid=user fsgid=user tty=(none) ses=53 comm=iceauth exe=/usr/bin/iceauth subj=user_u:user_r:iceauth_t:s0 key=(null) type=AVC msg=audit(11/01/19 15:54:31.833:957) : avc: denied { write } for pid=4398 comm=iceauth name=/ dev="tmpfs" ino=335392 scontext=user_u:user_r:iceauth_t:s0 tcontext=system_u:object_r:user_tmp_t:s0 tclass=dir permissive=0 Expected results: User logs in, no AVC Additional info: Likewise for staff; sysadm cannot log in either, but the whole process is much faster and no error appears.