Bug 534016

Summary: SELinux is preventing /usr/bin/python "name_connect" access.
Product: [Fedora] Fedora Reporter: Renich Bon Ciric <renich>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: aaronsa53, arturomnty, BRosandick, devel.niks, drewskiwooskie, duffy, dwalsh, ericosaucedo, findingharrylime, jacob, james.nelson27, maral.afris, markhuomian, mgrepl, neil_stelzer, Nightwalker287, optimal_solution2000, robinthakurrajput, shineindigo, travelngeek, wherebrandon_fedora_bugzilla, wrightech
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:92fac7762396ca0b0d55b1cf766fefd073ee67bfefa706e36f9b6fc4fae9e692
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-10 12:38:37 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 Renich Bon Ciric 2009-11-10 05:29:59 UTC
Summary:

SELinux is preventing /usr/bin/python "name_connect" access.

Detailed Description:

SELinux denied access requested by yumdownloader. It is not expected that this
access is required by yumdownloader 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:abrt_t:s0
Target Context                system_u:object_r:ftp_port_t:s0
Target Objects                None [ tcp_socket ]
Source                        yumdownloader
Source Path                   /usr/bin/python
Port                          21
Host                          (removed)
Source RPM Packages           python-2.6.2-2.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-41.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.5-127.fc12.x86_64 #1 SMP Sat Nov 7 21:11:14
                              EST 2009 x86_64 x86_64
Alert Count                   2
First Seen                    Mon 09 Nov 2009 02:01:38 AM CST
Last Seen                     Mon 09 Nov 2009 11:25:18 PM CST
Local ID                      d853ef85-44bd-41e4-8962-0deebb0cc181
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1257830718.489:29996): avc:  denied  { name_connect } for  pid=30664 comm="yumdownloader" dest=21 scontext=system_u:system_r:abrt_t:s0 tcontext=system_u:object_r:ftp_port_t:s0 tclass=tcp_socket

node=(removed) type=SYSCALL msg=audit(1257830718.489:29996): arch=c000003e syscall=42 success=no exit=-115 a0=1b a1=7fff17b64290 a2=10 a3=0 items=0 ppid=27533 pid=30664 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="yumdownloader" exe="/usr/bin/python" subj=system_u:system_r:abrt_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-41.fc12,catchall,yumdownloader,abrt_t,ftp_port_t,tcp_socket,name_connect
audit2allow suggests:

#============= abrt_t ==============
allow abrt_t ftp_port_t:tcp_socket name_connect;

Comment 1 Miroslav Grepl 2009-11-10 12:38:37 UTC

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

Comment 2 wherebrandon_fedora_bugzilla 2010-01-30 17:18:57 UTC
i installed fedora 12 on a lenovo W500.  When i ran the updates this morning i got this error, and signed up for a redhad bugzilla id, and reported the error(it is the first of 8 selinux errors)

I have not used alternate/3rd party repos.  i haven't even put in m3 decoding or dvd watching.

this issue does still exist on 100% redhat/fedora distributed packages, so it DOES NOT WORK FOR ME.

i will be happy to provide any information from my system to help solve the problem.

this is preventing yum from working.

i really don't want to disable selinux.  it is there for a good reason.