Bug 1942775

Summary: SELinux is preventing gnome-shell from 'write' accesses on the sock_file dbus-UjghVJFa5E.
Product: [Fedora] Fedora Reporter: Adam Williamson <awilliam>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: alexklarkson, anita.lps, dwalsh, forlorn, grepl.miroslav, joern, lvrabec, mmalik, omosnace, plautrba, retape, stivenmodi, tech, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d4c50c7e8370de65883de0d278945f5a43f00d8a712df224e31f44c32c75bbf0;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-25 08:50:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Williamson 2021-03-24 23:46:56 UTC
Description of problem:
Happened on boot of F34 after update to GNOME 40 final release update.
SELinux is preventing gnome-shell from 'write' accesses on the sock_file dbus-UjghVJFa5E.

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

If you believe that gnome-shell should be allowed write access on the dbus-UjghVJFa5E sock_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 'gnome-shell' --raw | audit2allow -M my-gnomeshell
# semodule -X 300 -i my-gnomeshell.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:tmp_t:s0
Target Objects                dbus-UjghVJFa5E [ sock_file ]
Source                        gnome-shell
Source Path                   gnome-shell
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-3.14.7-26.fc34.noarch
Local Policy RPM              selinux-policy-targeted-3.14.7-26.fc34.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.11.8-300.fc34.x86_64 #1 SMP Mon
                              Mar 22 01:33:25 UTC 2021 x86_64 x86_64
Alert Count                   7
First Seen                    2021-03-24 16:44:35 PDT
Last Seen                     2021-03-24 16:44:38 PDT
Local ID                      122c0c88-7ad6-40a0-b483-57ebdf1ffb48

Raw Audit Messages
type=AVC msg=audit(1616629478.333:783): avc:  denied  { write } for  pid=1724 comm="ibus-x11" name="dbus-UjghVJFa5E" dev="tmpfs" ino=49 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=sock_file permissive=0


Hash: gnome-shell,xdm_t,tmp_t,sock_file,write

Version-Release number of selected component:
selinux-policy-targeted-3.14.7-26.fc34.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.14.0
hashmarkername: setroubleshoot
kernel:         5.11.8-300.fc34.x86_64
type:           libreport

Potential duplicate: bug 1941853

Comment 1 Zdenek Pytela 2021-03-25 08:50:02 UTC

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

Comment 2 VincentL 2021-05-09 11:41:27 UTC
*** Bug 1958633 has been marked as a duplicate of this bug. ***

Comment 3 VincentL 2021-05-09 12:04:17 UTC
*** Bug 1958637 has been marked as a duplicate of this bug. ***

Comment 4 Anita 2021-05-10 12:09:40 UTC
*** Bug 1958907 has been marked as a duplicate of this bug. ***

Comment 5 Anita 2021-05-19 14:55:00 UTC
*** Bug 1962239 has been marked as a duplicate of this bug. ***

Comment 6 ingli 2021-05-25 05:44:58 UTC
*** Bug 1964240 has been marked as a duplicate of this bug. ***

Comment 7 joern 2021-05-26 08:17:05 UTC
*** Bug 1964850 has been marked as a duplicate of this bug. ***

Comment 8 Forlorn 2021-07-29 06:23:09 UTC
*** Bug 1987162 has been marked as a duplicate of this bug. ***

Comment 9 Forlorn 2021-08-23 15:59:54 UTC
*** Bug 1996775 has been marked as a duplicate of this bug. ***

Comment 10 Anita 2021-08-26 19:08:59 UTC
*** Bug 1998297 has been marked as a duplicate of this bug. ***

Comment 11 Anita 2021-09-01 14:47:37 UTC
*** Bug 2000198 has been marked as a duplicate of this bug. ***