Bug 1294060

Summary: SELinux prevents sddm-helper from creating the file .wayland-errors
Product: [Fedora] Fedora Reporter: Johannes Pfrang <johannespfrang>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1291085 Environment:
Last Closed: 2015-12-24 12:33:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Johannes Pfrang 2015-12-24 10:53:20 UTC
Trying to log into a plasma-wayland session from sddm. Original report is bug 1291085 and the more obvious error was fixed. This one is still here:

SELinux is preventing sddm-helper from create access on the file .wayland-errors.

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

If you believe that sddm-helper should be allowed create access on the .wayland-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:
# grep sddm-helper /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.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                .wayland-errors [ file ]
Source                        sddm-helper
Source Path                   sddm-helper
Port                          <Unknown>
Host                          johnp-pc
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-158.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     johnp-pc
Platform                      Linux johnp-pc 4.2.8-300.fc23.x86_64 #1 SMP Tue
                              Dec 15 16:49:06 UTC 2015 x86_64 x86_64
Alert Count                   6
First Seen                    2015-11-21 21:35:43 CET
Last Seen                     2015-12-24 10:31:55 CET
Local ID                      2e70ea4e-dfe3-4d21-ad9a-16ce8fddbda9

Raw Audit Messages
type=AVC msg=audit(1450949515.714:543): avc:  denied  { create } for  pid=2161 comm="sddm-helper" name=".wayland-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: sddm-helper,xdm_t,user_home_t,file,create

Comment 1 Johannes Pfrang 2015-12-24 12:33:33 UTC
Now that Firefox doesn't crash anymore ( Mozilla#1234026 ) I had a look at the repository and saw that it's already been fixed:

https://github.com/fedora-selinux/selinux-policy/commit/459edcb53f09cfca558c084463dd6bbd369f470c

Duping back to the bug mentioned in the comment.

*** This bug has been marked as a duplicate of bug 1291085 ***