Bug 546380

Summary: SELinux is preventing gdb "write" access on gdb.
Product: [Fedora] Fedora Reporter: Michal Nowak <mnowak>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 12CC: dwalsh, jan.kratochvil, mgrepl, ohudlick, pmuldoon
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:dc9e6a4dff0d6fbe4b19eb996f182e9854bb1169ce03522bc67b6a46249a61df
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-05 12:51:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Nowak 2009-12-10 18:44:19 UTC
Summary:

SELinux is preventing gdb "write" access on gdb.

Detailed Description:

SELinux denied access requested by gdb. It is not expected that this access is
required by gdb and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:NetworkManager_t:s0
Target Context                system_u:object_r:usr_t:s0
Target Objects                gdb [ dir ]
Source                        gdb
Source Path                   gdb
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-55.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.6-162.fc12.i686 #1 SMP Fri Dec 4 01:09:09
                              EST 2009 i686 i686
Alert Count                   2
First Seen                    Thu 10 Dec 2009 06:29:25 PM CET
Last Seen                     Thu 10 Dec 2009 06:29:25 PM CET
Local ID                      a8417d0b-95d7-46b3-bf6d-78a2fb338c6d
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1260466165.691:298): avc:  denied  { write } for  pid=28587 comm="gdb" name="gdb" dev=dm-2 ino=122766 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=dir



Hash String generated from  selinux-policy-3.6.32-55.fc12,catchall,gdb,NetworkManager_t,usr_t,dir,write
audit2allow suggests:

#============= NetworkManager_t ==============
allow NetworkManager_t usr_t:dir write;

Comment 1 Daniel Walsh 2010-04-05 12:51:41 UTC

*** This bug has been marked as a duplicate of bug 528554 ***