Bug 2001147

Summary: SELinux is preventing gnome-shell from 'write' accesses on the sock_file dbus-yKyfesG3Ic.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, 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-09-07 16:04:51 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 Mikhail 2021-09-03 22:19:31 UTC
Description of problem:
SELinux is preventing gnome-shell from 'write' accesses on the sock_file dbus-yKyfesG3Ic.

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

If you believe that gnome-shell should be allowed write access on the dbus-yKyfesG3Ic 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-yKyfesG3Ic [ 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-34.16-1.fc36.noarch
Local Policy RPM              selinux-policy-targeted-34.16-1.fc36.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              5.15.0-0.rc0.20210902git4ac6d90867a4.4.fc36.x86_64
                              #1 SMP Thu Sep 2 19:28:44 UTC 2021 x86_64 x86_64
Alert Count                   4
First Seen                    2021-09-04 03:16:04 +05
Last Seen                     2021-09-04 03:16:05 +05
Local ID                      ec2e4a60-1d37-4ee6-b524-2c442b011f6a

Raw Audit Messages
type=AVC msg=audit(1630707365.250:231): avc:  denied  { write } for  pid=2061 comm="ibus-x11" name="dbus-yKyfesG3Ic" dev="tmpfs" ino=48 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tmp_t:s0 tclass=sock_file permissive=1


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

Version-Release number of selected component:
selinux-policy-targeted-34.16-1.fc36.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.15.0-0.rc0.20210902git4ac6d90867a4.4.fc36.x86_64
type:           libreport

Potential duplicate: bug 1941853

Comment 1 Zdenek Pytela 2021-09-07 16:04:51 UTC

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