Bug 1336087

Summary: SELinux is preventing gdb from 'getattr' accesses on the file file.
Product: [Fedora] Fedora Reporter: Joachim Frieben <jfrieben>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8c778a2b3370451ed4f04c64109e8b7d0ca20579696db3a6364f19d5fd4b9320;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-20 13:32:42 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 Joachim Frieben 2016-05-14 03:34:12 UTC
Description of problem:
SELinux is preventing gdb from 'getattr' accesses on the file file.

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

If you believe that gdb should be allowed getattr access on the file 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                unconfined_u:unconfined_r:svirt_t:s0:c726,c1023
Target Context                system_u:object_r:nsfs_t:s0
Target Objects                file [ file ]
Source                        gdb
Source Path                   gdb
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-185.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.5.4-300.fc24.x86_64 #1 SMP Wed
                              May 11 17:57:16 UTC 2016 x86_64 x86_64
Alert Count                   2
First Seen                    2016-05-13 21:09:33 CEST
Last Seen                     2016-05-13 21:09:40 CEST
Local ID                      180efd44-f08b-43f8-b15b-b75b763632a8

Raw Audit Messages
type=AVC msg=audit(1463166580.676:403): avc:  denied  { getattr } for  pid=3818 comm="gdb" path="pid:[4026531836]" dev="nsfs" ino=4026531836 scontext=unconfined_u:unconfined_r:svirt_t:s0:c726,c1023 tcontext=system_u:object_r:nsfs_t:s0 tclass=file permissive=0


Hash: gdb,svirt_t,nsfs_t,file,getattr

Version-Release number of selected component:
selinux-policy-3.13.1-185.fc24.noarch

Additional info:
reporter:       libreport-2.7.0
hashmarkername: setroubleshoot
kernel:         4.5.4-300.fc24.x86_64
reproducible:   Not sure how to reproduce the problem
type:           libreport

Potential duplicate: bug 1312608

Comment 1 Lukas Vrabec 2016-05-20 13:32:42 UTC

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