Bug 2222201 - SELinux is preventing sddm-helper from 'add_name' accesses on the directory wayland-errors.
Summary: SELinux is preventing sddm-helper from 'add_name' accesses on the directory w...
Keywords:
Status: CLOSED DUPLICATE of bug 2221901
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:2e2383a51957cfd653dcbcdc440...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-12 08:38 UTC by Dennis Schridde
Modified: 2023-07-19 21:37 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-19 21:37:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.91 KB, text/plain)
2023-07-12 08:38 UTC, Dennis Schridde
no flags Details
File: os_info (699 bytes, text/plain)
2023-07-12 08:38 UTC, Dennis Schridde
no flags Details

Description Dennis Schridde 2023-07-12 08:38:19 UTC
Description of problem:
Started computer, auto-login into KDE Plasma, was immediately greeted with the SELinux alert.
SELinux is preventing sddm-helper from 'add_name' accesses on the directory wayland-errors.

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

If you believe that sddm-helper should be allowed add_name access on the wayland-errors directory 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 'sddm-helper' --raw | audit2allow -M my-sddmhelper
# semodule -X 300 -i my-sddmhelper.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:container_file_t:s0
Target Objects                wayland-errors [ dir ]
Source                        sddm-helper
Source Path                   sddm-helper
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.20-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.20-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.3.12-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Jul 6 04:05:18 UTC 2023 x86_64
Alert Count                   2
First Seen                    2023-07-12 07:08:22 EAT
Last Seen                     2023-07-12 11:36:57 EAT
Local ID                      18075265-0f44-4f4e-9b18-1568a7143cac

Raw Audit Messages
type=AVC msg=audit(1689151017.745:230): avc:  denied  { add_name } for  pid=1859 comm="sddm-helper" name="wayland-errors" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:container_file_t:s0 tclass=dir permissive=0


Hash: sddm-helper,xdm_t,container_file_t,dir,add_name

Version-Release number of selected component:
selinux-policy-targeted-38.20-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing sddm-helper from 'add_name' accesses on the directory wayland-errors.
package:        selinux-policy-targeted-38.20-1.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.3.12-200.fc38.x86_64
comment:        Started computer, auto-login into KDE Plasma, was immediately greeted with the SELinux alert.
component:      selinux-policy

Comment 1 Dennis Schridde 2023-07-12 08:38:22 UTC
Created attachment 1975325 [details]
File: description

Comment 2 Dennis Schridde 2023-07-12 08:38:25 UTC
Created attachment 1975326 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-07-12 18:00:33 UTC
What is the path for the wayland-errors directory and what are the permissions?

ls -lZa /path/wayland-errors

Comment 4 Dennis Schridde 2023-07-19 21:37:02 UTC
Probably a duplicate of bug #2221901.

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


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