Bug 1950706 - SELinux is preventing gdb from 'open' accesses on the file /var/cache/fwupd/quirks.xmlb.
Summary: SELinux is preventing gdb from 'open' accesses on the file /var/cache/fwupd/q...
Keywords:
Status: CLOSED DUPLICATE of bug 1949948
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:65cd0ddd9f41ed1544f55ad8d82...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-18 02:44 UTC by Ian Laurie
Modified: 2021-04-19 17:16 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-04-19 17:16:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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