Bug 1767874 - Confined users cannot log in to graphical session
Summary: Confined users cannot log in to graphical session
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 33
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Patrik Koncity
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1767779
TreeView+ depends on / blocked
 
Reported: 2019-11-01 15:09 UTC by Zdenek Pytela
Modified: 2021-03-29 01:19 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-3.14.6-36.fc33
Clone Of:
Environment:
Last Closed: 2021-03-29 01:19:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zdenek Pytela 2019-11-01 15:09:38 UTC
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.

Comment 1 Zdenek Pytela 2019-11-06 16:53:06 UTC
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))

Comment 4 Ben Cotton 2020-02-11 17:48:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.

Comment 7 Patrik Koncity 2020-10-23 12:50:00 UTC
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.

Comment 8 Zdenek Pytela 2021-03-18 15:24:13 UTC
Merged to rawhide and backported to F33.

Comment 9 Fedora Update System 2021-03-26 20:32:33 UTC
FEDORA-2021-4d5b1e1f06 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4d5b1e1f06

Comment 10 Fedora Update System 2021-03-27 01:30:49 UTC
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.

Comment 11 Fedora Update System 2021-03-29 01:19:32 UTC
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.


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