On 03/12/2018 03:08 AM, Ed Greshko wrote:
On 03/12/18 17:35, ToddAndMargo wrote:
Hi All,

Fedora 27, x64

Xfce 4.12

lightdm-1.25.1-5.fc27.x86_64

With SELinux set to Enforcing, I can only log into Xfce as root.

If I set SELinux to Permissive, I can log into anyone.

SEAlert is quite.

In the Audit log, I get:

    # grep lightdm /var/log/audit/audit.log | grep denied

type=AVC msg=audit(1520843479.104:515): avc:  denied  { create } for pid=7554
comm="lightdm" name=".xsession-errors"
scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023
tcontext=system_u:object_r:samba_share_t:s0 tclass=file permissive=1

type=AVC msg=audit(1520843479.104:516): avc:  denied  { write open } for  
pid=7554
comm="lightdm" path="/home/tony/.xsession-errors" dev="dm-1" ino=54526689
scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023
tcontext=system_u:object_r:samba_share_t:s0 tclass=file permissive=1

SELinux is taking a shine to everyone's, except root's,
.xsession-errors.

How do I fix this?

What do you have for "ls -Z /home/tony/.xsession-errors"?  Mine is...

egreshko@meimei ~]$ ls -Z .xsession-errors
unconfined_u:object_r:xdm_home_t:s0 .xsession-errors

$ ls -Z /home/tony/.xsession-errors
system_u:object_r:samba_share_t:s0 /home/tony/.xsession-errors


You can try "restorecon /home/tony/.xsession-errors".  You may have to do that 
as root.

Will try in a minute
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org

Reply via email to