Bug 1707756 - SELinux is preventing lightdm from 'rename' accesses on the file .xsession-errors.
Summary: SELinux is preventing lightdm from 'rename' accesses on the file .xsession-er...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 30
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:96c74229ae13b9f7a89d2e0c976...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-08 09:24 UTC by Stephen Finucane
Modified: 2019-08-19 14:57 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-05-14 16:12:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stephen Finucane 2019-05-08 09:24:11 UTC
Description of problem:
SELinux is preventing lightdm from 'rename' accesses on the file .xsession-errors.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that lightdm should be allowed rename 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.14.3-32.fc30.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.0.11-300.fc30.x86_64 #1 SMP Thu
                              May 2 14:11:38 UTC 2019 x86_64 x86_64
Alert Count                   1
First Seen                    2019-05-08 09:21:13 GMT
Last Seen                     2019-05-08 09:21:13 GMT
Local ID                      68e99809-d545-4a9d-8c4f-d65a6c884b88

Raw Audit Messages
type=AVC msg=audit(1557307273.661:228): avc:  denied  { rename } for  pid=1751 comm="lightdm" name=".xsession-errors" dev="dm-4" ino=12058672 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,rename

Version-Release number of selected component:
selinux-policy-3.14.3-32.fc30.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.0.11-300.fc30.x86_64
type:           libreport

Potential duplicate: bug 963238

Comment 1 Lukas Vrabec 2019-05-14 16:12:06 UTC
Hi, 

Could you please run following command to fix your issue: 

# restorecon -Rv /

Thanks,
Lukas.

Comment 2 Dave 2019-08-19 14:57:26 UTC
Description of problem:
Fresh install of Fedora 30 replacing Mint 19.2.  rsync copied all files from Mint's backup (including the hidden files). 
Problem notice appeared immediately upoin bootup and logging in.

Version-Release number of selected component:
selinux-policy-3.14.3-29.fc30.noarch

Additional info:
reporter:       libreport-2.10.0
hashmarkername: setroubleshoot
kernel:         5.0.9-301.fc30.x86_64
type:           libreport


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