Bug 2039857 - SELinux is preventing gdm-wayland-ses from 'write' accesses on the sock_file bus.
Summary: SELinux is preventing gdm-wayland-ses from 'write' accesses on the sock_file ...
Keywords:
Status: CLOSED DUPLICATE of bug 2039671
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0a02f451321f4cc63a65bf7fdbd...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-12 14:57 UTC by Frank Büttner
Modified: 2022-01-14 16:37 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-14 16:37:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Frank Büttner 2022-01-12 14:57:38 UTC
Description of problem:
SELinux is preventing gdm-wayland-ses from 'write' accesses on the sock_file bus.

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

Wenn Sie denken, dass es gdm-wayland-ses standardmäßig erlaubt sein sollte, write Zugriff auf bus sock_file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# ausearch -c 'gdm-wayland-ses' --raw | audit2allow -M my-gdmwaylandses
# semodule -X 300 -i my-gdmwaylandses.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:session_dbusd_tmp_t:s0
Target Objects                bus [ sock_file ]
Source                        gdm-wayland-ses
Source Path                   gdm-wayland-ses
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-34.23-1.fc34.noarch
Local Policy RPM              selinux-policy-targeted-34.23-1.fc34.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.15.13-100.fc34.x86_64 #1 SMP Wed
                              Jan 5 17:06:02 UTC 2022 x86_64 x86_64
Alert Count                   1
First Seen                    2022-01-12 15:51:14 CET
Last Seen                     2022-01-12 15:51:14 CET
Local ID                      8e5a3933-a1b4-4362-a3cd-29a05d75feff

Raw Audit Messages
type=AVC msg=audit(1641999074.440:262): avc:  denied  { write } for  pid=1466 comm="gdm-wayland-ses" name="bus" dev="tmpfs" ino=46 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:session_dbusd_tmp_t:s0 tclass=sock_file permissive=0


Hash: gdm-wayland-ses,xdm_t,session_dbusd_tmp_t,sock_file,write

Version-Release number of selected component:
selinux-policy-targeted-34.23-1.fc34.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.15.13-100.fc34.x86_64
type:           libreport

Comment 1 Iman M. Dezfuly 2022-01-13 09:07:13 UTC
Similar problem has been detected:

after around 1 hour work on computer it forze

hashmarkername: setroubleshoot
kernel:         5.15.13-100.fc34.x86_64+debug
package:        selinux-policy-targeted-34.23-1.fc34.noarch
reason:         SELinux is preventing gdm-wayland-ses from 'write' accesses on the sock_file bus.
type:           libreport

Comment 2 Zdenek Pytela 2022-01-14 16:37:19 UTC

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


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