Bug 810447 - SELinux is preventing gdb from using the 'ptrace' accesses on a process.
SELinux is preventing gdb from using the 'ptrace' accesses on a process.
Status: CLOSED DUPLICATE of bug 810451
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
: 810052 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2012-04-06 03:52 EDT by Kamil Páral
Modified: 2012-04-09 15:38 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-04-06 14:13:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kamil Páral 2012-04-06 03:52:32 EDT
libreport version: 2.0.10
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-1.fc17.i686
time:           Fri 06 Apr 2012 03:51:29 AM EDT

:SELinux is preventing 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 xdm_t by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
: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                system_u:system_r:xdm_t:s0-s0:c0.c1023
:Target Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
:Target Objects                 [ process ]
:Source                        gdb
:Source Path                   gdb
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-110.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-1.fc17.i686 #1
:                              SMP Mon Mar 19 03:19:22 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    Fri 06 Apr 2012 03:50:25 AM EDT
:Last Seen                     Fri 06 Apr 2012 03:50:25 AM EDT
:Local ID                      993eaf0e-0a49-4939-909f-9ca31c8ad7e6
:Raw Audit Messages
:type=AVC msg=audit(1333698625.906:288): avc:  denied  { ptrace } for  pid=1535 comm="gdb" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tclass=process
:Hash: gdb,xdm_t,xdm_t,process,ptrace
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
Comment 1 Kamil Páral 2012-04-06 03:54:15 EDT
I have seen this alert on F17 Beta RC3 i686 LiveCD. After I log out, gdm/X crashes. Probably abrt or some other process tried to inspect the crash. After the crash X respawned, logged me in, and I saw notification for this selinux denial.
Comment 2 Adam Williamson 2012-04-06 14:13:03 EDT
Kamil filed a 'manual' bug for the problem caused by this, so closing as a dupe of that one, which is a blocker.

Fedora Bugzappers volunteer triage team

*** This bug has been marked as a duplicate of bug 810451 ***
Comment 3 Daniel Walsh 2012-04-09 15:38:31 EDT
*** Bug 810052 has been marked as a duplicate of this bug. ***

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