Bug 1398901 - 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: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8c778a2b3370451ed4f04c64109...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-27 07:17 UTC by Joachim Frieben
Modified: 2016-11-30 13:03 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-30 13:03:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Joachim Frieben 2016-11-27 07:17:30 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:c594,c767
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-224.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.8-300.fc25.x86_64 #1 SMP Tue
                              Nov 15 18:10:06 UTC 2016 x86_64 x86_64
Alert Count                   2
First Seen                    2016-11-26 23:21:29 CET
Last Seen                     2016-11-26 23:21:33 CET
Local ID                      60b625d3-1131-42e6-884c-9c667fdc64a8

Raw Audit Messages
type=AVC msg=audit(1480198893.845:342): avc:  denied  { getattr } for  pid=30030 comm="gdb" path="pid:[4026531836]" dev="nsfs" ino=4026531836 scontext=unconfined_u:unconfined_r:svirt_t:s0:c594,c767 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-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.8-300.fc25.x86_64
type:           libreport

Potential duplicate: bug 1336087

Comment 1 Lukas Vrabec 2016-11-30 13:03:24 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.