Bug 1998967

Summary: SELinux is preventing gdb from 'open' accesses on the chr_file /dev/nvidiactl.
Product: [Fedora] Fedora Reporter: Diego Cingerla <diego.cingerla>
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:5c8f1084bb54297780f9e01ac6281d31d6cec624efc3b810983fba1d41b83341;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-10 15:01: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 Diego Cingerla 2021-08-30 06:40:15 UTC
Description of problem:
Aprendo la pagina di ebay
https://www.ebay.it/itm/184075289325?_trkparms=aid%3D111001%26algo%3DREC.SEED%26ao%3D1%26asc%3D20160908105057%26meid%3Df77523053d0a405f8198d69d54ffd985%26pid%3D100675%26rk%3D2%26rkt%3D15%26sd%3D222858541590%26itm%3D184075289325%26pmt%3D0%26noa%3D1%26pg%3D2380057&_trksid=p2380057.c100675.m4236&_trkparms=pageci%3A6027e0ed-095c-11ec-b6dc-aafe5f99919a%7Cparentrq%3A95c4857417b0a7445050766dffee13de%7Ciid%3A1
SELinux is preventing gdb from 'open' accesses on the chr_file /dev/nvidiactl.

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

Se ci credi gdb dovrebbe essere consentito open accesso al nvidiactl chr_file per impostazione predefinita.
Then si dovrebbe riportare il problema come bug.
E' possibile generare un modulo di politica locale per consentire questo accesso.
Do
consentire questo accesso per ora eseguendo:
# ausearch -c 'gdb' --raw | audit2allow -M my-$MODULE_NOME
# semodule -X 300 -i miei-gdb.pp

Additional Information:
Source Context                system_u:system_r:abrt_t:s0-s0:c0.c1023
Target Context                system_u:object_r:xserver_misc_device_t:s0
Target Objects                /dev/nvidiactl [ chr_file ]
Source                        gdb
Source Path                   gdb
Port                          <Sconosciuto>
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.12-200.fc34.x86_64 #1 SMP Wed
                              Aug 18 13:27:18 UTC 2021 x86_64 x86_64
Alert Count                   3045
First Seen                    2021-06-16 07:21:26 CEST
Last Seen                     2021-08-30 08:36:23 CEST
Local ID                      6554e307-7ce2-4c7c-8d59-f32958f93ce7

Raw Audit Messages
type=AVC msg=audit(1630305383.21:617): avc:  denied  { open } for  pid=4845 comm="gdb" path="/dev/nvidiactl" dev="devtmpfs" ino=653 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:xserver_misc_device_t:s0 tclass=chr_file permissive=0


Hash: gdb,abrt_t,xserver_misc_device_t,chr_file,open

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.12-200.fc34.x86_64
type:           libreport

Potential duplicate: bug 1915470

Comment 1 Zdenek Pytela 2021-11-10 15:01:29 UTC

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