Bug 791310 - SELinux is preventing /usr/bin/gdb from using the 'signull' accesses on a process.
Summary: SELinux is preventing /usr/bin/gdb from using the 'signull' accesses on a pro...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f87635774396ddf6532031732e5...
: 795376 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-16 17:19 UTC by Nicolas Mailhot
Modified: 2012-12-15 19:10 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-15 19:10:26 UTC
Type: ---


Attachments (Terms of Use)

Description Nicolas Mailhot 2012-02-16 17:19:46 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-0.rc3.git5.1.fc17.x86_64
reason:         SELinux is preventing /usr/bin/gdb from using the 'signull' accesses on a process.
time:           jeu. 16 févr. 2012 18:19:35 CET

description:
:SELinux is preventing /usr/bin/gdb from using the 'signull' accesses on a process.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that gdb should be allowed signull access on processes labeled rpm_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                system_u:system_r:NetworkManager_t:s0
:Target Context                unconfined_u:system_r:rpm_t:s0-s0:c0.c1023
:Target Objects                 [ process ]
:Source                        gdb
:Source Path                   /usr/bin/gdb
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           gdb-7.4.50.20120120-17.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-88.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-0.rc3.git5.1.fc17.x86_64 #1
:                              SMP Tue Feb 14 14:58:54 UTC 2012 x86_64 x86_64
:Alert Count                   3
:First Seen                    jeu. 16 févr. 2012 08:00:23 CET
:Last Seen                     jeu. 16 févr. 2012 18:18:06 CET
:Local ID                      4c8aee95-684c-4e49-b82a-e0924cc4092b
:
:Raw Audit Messages
:type=AVC msg=audit(1329412686.229:10340): avc:  denied  { signull } for  pid=29671 comm="gdb" scontext=system_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:system_r:rpm_t:s0-s0:c0.c1023 tclass=process
:
:
:type=SYSCALL msg=audit(1329412686.229:10340): arch=x86_64 syscall=kill success=yes exit=0 a0=73a3 a1=0 a2=73e7 a3=7fff8fa4e4c0 items=0 ppid=29670 pid=29671 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=gdb exe=/usr/bin/gdb subj=system_u:system_r:NetworkManager_t:s0 key=(null)
:
:Hash: gdb,NetworkManager_t,rpm_t,process,signull
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Nicolas Mailhot 2012-02-16 17:21:36 UTC
I suppose that's abrt trying to run after a NetworkManager crash

Comment 2 Daniel Walsh 2012-02-16 17:46:50 UTC
Why would NetworkManager be running gdb and send a signull to a process running as rpm_t?  (packagekit?)

Comment 3 Nicolas Mailhot 2012-02-16 18:59:44 UTC
I think that happened during a yum NetworkManager update

But I agree things have been getting weirder and weirder lately

Comment 4 Colin Walters 2012-02-16 20:44:17 UTC
(In reply to comment #2)
> Why would NetworkManager be running gdb and send a signull to a process running
> as rpm_t?  (packagekit?)

NetworkManager runs gdb on itself when it crashes in order to extract a crash dump.  The code should just be removed since we have abrt.

Comment 5 Dan Williams 2012-02-16 20:47:32 UTC
NM has some internal crashlogging logic that does attempt to run gdb and pipe its output to syslog on a crash, which has proven quite useful when diagnosing crashes.  I suppose we can turn that off in Fedora if it's causing problems, though we've had this code enabled for almost 5 years and it hasn't had problems before.

Comment 6 Daniel Walsh 2012-02-17 14:49:32 UTC
Dan well we have a new feature that is going to block processes from being able to ptrace other processes.  Which will block NetworkManager from doing this.

Comment 7 Miroslav Grepl 2012-02-20 15:25:17 UTC
*** Bug 795376 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.