Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be unavailable on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1413098 - SELinux is preventing lightdm from 'create' accesses on the file .xsession-errors.
Summary: SELinux is preventing lightdm from 'create' accesses on the file .xsession-er...
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:972cd815be4eb2c5436eef3b201...
Depends On:
TreeView+ depends on / blocked
Reported: 2017-01-13 15:45 UTC by Ildar Akhmetgaleev
Modified: 2017-01-20 04:12 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-01-20 04:12:56 UTC
Type: ---

Attachments (Terms of Use)

Description Ildar Akhmetgaleev 2017-01-13 15:45:48 UTC
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.
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:

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.16-300.fc25.x86_64
type:           libreport

Potential duplicate: bug 922958

Comment 1 Ildar Akhmetgaleev 2017-01-20 04:12:56 UTC
Problem solved by resetting selinux policies to factory defaults and resetting labels.

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