Bug 1294060 - SELinux prevents sddm-helper from creating the file .wayland-errors
Summary: SELinux prevents sddm-helper from creating the file .wayland-errors
Keywords:
Status: CLOSED DUPLICATE of bug 1291085
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-24 10:53 UTC by Johannes Pfrang
Modified: 2015-12-24 12:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1291085
Environment:
Last Closed: 2015-12-24 12:33:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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