Bug 533439

Summary: SELinux is preventing /usr/bin/python "name_connect" access.
Product: [Fedora] Fedora Reporter: Ví­ctor Daniel Martínez O. <vdanielmo>
Component: abrtAssignee: Jiri Moskovcak <jmoskovc>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: alex, anton, cheguaka, christoph.wickert, devel.niks, dfediuck, dvlasenk, dwalsh, iprikryl, jmoskovc, kklic, mgrepl, mnowak, npajkovs, renich
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:979058d8d2fbd464ba94d20e8b789b52d768a927e72bb33111874eeb40c7c6f1
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-09 15:04:15 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 Ví­ctor Daniel Martínez O. 2009-11-06 18:55:03 UTC
Summary:

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

Detailed Description:

SELinux denied access requested by yum. It is not expected that this access is
required by yum 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                        yum
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-40.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-115.fc12.i686 #1 SMP
                              Wed Nov 4 00:45:40 EST 2009 i686 i686
Alert Count                   1
First Seen                    Thu 05 Nov 2009 11:08:30 PM COT
Last Seen                     Thu 05 Nov 2009 11:08:30 PM COT
Local ID                      d3b5e0f7-cc20-4710-92fb-9b33c2b22667
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1257480510.219:18767): avc:  denied  { name_connect } for  pid=4767 comm="yum" 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(1257480510.219:18767): arch=40000003 syscall=102 success=no exit=-115 a0=3 a1=bfbefa50 a2=618f80 a3=bfbefcbc items=0 ppid=4766 pid=4767 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="yum" exe="/usr/bin/python" subj=system_u:system_r:abrt_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-40.fc12,catchall,yum,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-09 12:51:03 UTC
*** Bug 533689 has been marked as a duplicate of this bug. ***

Comment 2 Daniel Walsh 2009-11-09 15:03:08 UTC
Does yum need to connect to lots of random ports?  I guess ftp, http?

Comment 3 Daniel Walsh 2009-11-09 15:04:15 UTC
Fixed in selinux-policy-3.6.32-42.fc12.noarch

Comment 4 Miroslav Grepl 2009-11-10 12:38:37 UTC
*** Bug 534016 has been marked as a duplicate of this bug. ***

Comment 5 Alex Lancaster 2009-12-06 21:16:45 UTC
(In reply to comment #3)
> Fixed in selinux-policy-3.6.32-42.fc12.noarch  

I am still getting this error message with:

# rpm -q selinux-policy
selinux-policy-3.6.32-49.fc12.noarch

does it require a reboot to take effect?