Bug 2039682

Summary: SELinux is preventing gdk-pixbuf-thum from 'write' accesses on the sock_file bus.
Product: [Fedora] Fedora Reporter: weidner
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: drmcnelson, dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:2ff9962210dea5a3614fee42bce036bf46f94d35e881e44df2166ab32dc130a2;VARIANT_ID=cinnamon;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-08 18:15:22 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 weidner 2022-01-12 08:53:17 UTC
Description of problem:
SELinux is preventing gdk-pixbuf-thum from 'write' accesses on the sock_file bus.

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

Wenn Sie denken, dass es gdk-pixbuf-thum 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 'gdk-pixbuf-thum' --raw | audit2allow -M my-gdkpixbufthum
# semodule -X 300 -i my-gdkpixbufthum.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:session_dbusd_tmp_t:s0
Target Objects                bus [ sock_file ]
Source                        gdk-pixbuf-thum
Source Path                   gdk-pixbuf-thum
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 09:52:04 CET
Last Seen                     2022-01-12 09:52:04 CET
Local ID                      47b341a1-3978-41d6-89ee-6deb5ab64368

Raw Audit Messages
type=AVC msg=audit(1641977524.363:367): avc:  denied  { write } for  pid=12835 comm="gdk-pixbuf-thum" name="bus" dev="tmpfs" ino=42 scontext=unconfined_u:unconfined_r:thumb_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:session_dbusd_tmp_t:s0 tclass=sock_file permissive=0


Hash: gdk-pixbuf-thum,thumb_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 Zdenek Pytela 2022-02-08 18:15:22 UTC

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