Bug 2003268

Summary: SELinux is preventing gdb from 'read' accesses on the файл cached-microdescs.
Product: [Fedora] Fedora Reporter: Fhiss <fhiss>
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, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:eff8fa73478c4f6fd5a885a539c9de25ab475fe132640551cc6e3d2a9c59b98c;VARIANT_ID=xfce;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-09 15:24:29 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 Fhiss 2021-09-10 20:04:22 UTC
Description of problem:
SELinux is preventing gdb from 'read' accesses on the файл cached-microdescs.

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

Если вы считаете, что gdb должно быть разрешено read доступ к cached-microdescs file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
разрешить этот доступ сейчас, выполнив:
# 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:tor_var_lib_t:s0
Target Objects                cached-microdescs [ file ]
Source                        gdb
Source Path                   gdb
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-34.16-1.fc34.noarch
Local Policy RPM              selinux-policy-targeted-34.16-1.fc34.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.13.14-200.fc34.x86_64 #1 SMP Fri
                              Sep 3 15:33:01 UTC 2021 x86_64 x86_64
Alert Count                   1
First Seen                    2021-09-10 14:21:42 +03
Last Seen                     2021-09-10 14:21:42 +03
Local ID                      eae41fb5-7fb5-46da-8a7f-61d31f24f391

Raw Audit Messages
type=AVC msg=audit(1631272902.662:483): avc:  denied  { read } for  pid=5623 comm="gdb" name="cached-microdescs" dev="dm-0" ino=4576144 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:tor_var_lib_t:s0 tclass=file permissive=0


Hash: gdb,abrt_t,tor_var_lib_t,file,read

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

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.13.14-200.fc34.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2021-12-09 15:24:29 UTC

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