Description of problem: * install xfce and lightdm * disable gdm and enable lightdm * login to xfce with lightdm * get selinux warning SELinux is preventing lightdm from 'create' accesses on the file .xsession-errors. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that lightdm should be allowed create access on the .xsession-errors file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'lightdm' --raw | audit2allow -M my-lightdm # semodule -X 300 -i my-lightdm.pp Additional Information: Source Context system_u:system_r:xdm_t:s0-s0:c0.c1023 Target Context system_u:object_r:user_home_t:s0 Target Objects .xsession-errors [ file ] Source lightdm Source Path lightdm Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-225.6.fc25.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.8.16-300.fc25.x86_64 #1 SMP Fri Jan 6 18:11:49 UTC 2017 x86_64 x86_64 Alert Count 1 First Seen 2017-01-13 22:31:01 +07 Last Seen 2017-01-13 22:31:01 +07 Local ID 7c0726e8-12bc-4137-8e2a-e9093c81ea72 Raw Audit Messages type=AVC msg=audit(1484321461.531:415): avc: denied { create } for pid=4774 comm="lightdm" name=".xsession-errors" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_t:s0 tclass=file permissive=0 Hash: lightdm,xdm_t,user_home_t,file,create Version-Release number of selected component: selinux-policy-3.13.1-225.6.fc25.noarch Additional info: reporter: libreport-2.8.0 hashmarkername: setroubleshoot kernel: 4.8.16-300.fc25.x86_64 type: libreport Potential duplicate: bug 922958
Problem solved by resetting selinux policies to factory defaults and resetting labels.