Bug 1031815 - SELinux is preventing /usr/bin/gdb from using the 'ptrace' accesses on a process.
SELinux is preventing /usr/bin/gdb from using the 'ptrace' accesses on a proc...
Status: CLOSED INSUFFICIENT_DATA
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
20
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:24ca97bace046cbd7386f689964...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-18 15:36 EST by Mikhail
Modified: 2014-08-22 09:13 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-08-22 09:13:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mikhail 2013-11-18 15:36:12 EST
Description of problem:
SELinux is preventing /usr/bin/gdb from using the 'ptrace' accesses on a process.

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

If you believe that gdb should be allowed ptrace access on processes labeled svirt_t 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:
# grep gdb /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:svirt_t:s0:c24,c705
Target Context                unconfined_u:system_r:svirt_t:s0:c24,c705
Target Objects                 [ process ]
Source                        gdb
Source Path                   /usr/bin/gdb
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gdb-7.6.50.20130731-16.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-90.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.12.0-2.fc21.x86_64+debug #1 SMP
                              Sat Nov 9 21:12:03 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-11-18 02:05:04 YEKT
Last Seen                     2013-11-18 02:05:04 YEKT
Local ID                      b021eed1-6678-4ddc-bd76-3f9b7201a86c

Raw Audit Messages
type=AVC msg=audit(1384718704.692:730): avc:  denied  { ptrace } for  pid=4205 comm="gdb" scontext=unconfined_u:system_r:svirt_t:s0:c24,c705 tcontext=unconfined_u:system_r:svirt_t:s0:c24,c705 tclass=process


type=SYSCALL msg=audit(1384718704.692:730): arch=x86_64 syscall=ptrace success=no exit=EACCES a0=10 a1=7558 a2=0 a3=0 items=0 ppid=4201 pid=4205 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=1 tty=(none) comm=gdb exe=/usr/bin/gdb subj=unconfined_u:system_r:svirt_t:s0:c24,c705 key=(null)

Hash: gdb,svirt_t,svirt_t,process,ptrace

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.12.0-2.fc21.x86_64+debug
type:           libreport

Potential duplicate: bug 883556
Comment 1 Daniel Walsh 2013-11-18 16:36:01 EST
Were you using gnome-boxes?

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