Bug 533439 - SELinux is preventing /usr/bin/python "name_connect" access.
Summary: SELinux is preventing /usr/bin/python "name_connect" access.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jiri Moskovcak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:979058d8d2f...
: 533689 534016 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-06 18:55 UTC by Ví­ctor Daniel Martínez O.
Modified: 2015-02-01 22:49 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-11-09 15:04:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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?


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