Re: SELinux is blocking lightdm login to Xfce

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/12/2018 03:13 PM, ToddAndMargo wrote:
On 03/12/2018 03:06 PM, ToddAndMargo wrote:
On 03/12/2018 04:20 AM, Lukas Vrabec wrote:
On 03/12/2018 10:35 AM, 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?


I am indeed running two samba shared from /home

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

# restorecon -r /home/todd
Didn't work

Samba in running sahre from /home
# setsebool -P samba_enable_home_dirs on
Didn't work

# restorecon -Rv /home
# semanage boolean -m samba_enable_home_dirs --on
Didn't work

# semanage boolean -P samba_enable_home_dirs on
Didn't work

/usr/bin/sealert -b
Is quiet

Any hints in here?

$ ls -aZ
unconfined_u:object_r:samba_share_t:s0  .
       system_u:object_r:home_root_t:s0  ..
unconfined_u:object_r:samba_share_t:s0  .acetoneiso
unconfined_u:object_r:samba_share_t:s0  .adobe
unconfined_u:object_r:samba_share_t:s0  apctest.output

Seems to me that all this crap is from my home directory
and should not have anything to do with samba

The samba shares are on /home/CDs and /home/OurStuff



_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux