Bug 1950706

Summary: SELinux is preventing gdb from 'open' accesses on the file /var/cache/fwupd/quirks.xmlb.
Product: [Fedora] Fedora Reporter: Ian Laurie <nixuser>
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: dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, plautrba, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:65cd0ddd9f41ed1544f55ad8d82ede206fe2382b120f90114270449fc244fd98;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-19 17:16:38 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 Ian Laurie 2021-04-18 02:44:56 UTC
Description of problem:
Boot Fedora 34 Workstation and log in.
SELinux is preventing gdb from 'open' accesses on the file /var/cache/fwupd/quirks.xmlb.

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

If you believe that gdb should be allowed open access on the quirks.xmlb 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 'gdb' --raw | audit2allow -M my-gdb
# semodule -X 300 -i my-gdb.pp

Additional Information:
Source Context                system_u:system_r:abrt_t:s0-s0:c0.c1023
Target Context                system_u:object_r:fwupd_cache_t:s0
Target Objects                /var/cache/fwupd/quirks.xmlb [ file ]
Source                        gdb
Source Path                   gdb
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-34.3-1.fc34.noarch
Local Policy RPM              selinux-policy-targeted-34.3-1.fc34.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.11.14-300.fc34.x86_64 #1 SMP Wed
                              Apr 14 15:25:23 UTC 2021 x86_64 x86_64
Alert Count                   2
First Seen                    2021-04-18 12:40:41 AEST
Last Seen                     2021-04-18 12:41:10 AEST
Local ID                      8a2af579-db6d-4e25-8238-4c77f15e967c

Raw Audit Messages
type=AVC msg=audit(1618713670.192:837): avc:  denied  { open } for  pid=2778 comm="gdb" path="/var/cache/fwupd/quirks.xmlb" dev="sda2" ino=403914 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:fwupd_cache_t:s0 tclass=file permissive=1


Hash: gdb,abrt_t,fwupd_cache_t,file,open

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

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

Comment 1 Zdenek Pytela 2021-04-19 17:16:38 UTC

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