Bug 1336087 - SELinux is preventing gdb from 'getattr' accesses on the file file.
Summary: SELinux is preventing gdb from 'getattr' accesses on the file file.
Keywords:
Status: CLOSED DUPLICATE of bug 1312608
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 24
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8c778a2b3370451ed4f04c64109...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-14 03:34 UTC by Joachim Frieben
Modified: 2016-05-20 13:32 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-20 13:32:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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