Bug 1014891 - SELinux is preventing /usr/bin/python2.7 from 'name_bind' accesses on the tcp_socket .
Summary: SELinux is preventing /usr/bin/python2.7 from 'name_bind' accesses on the tcp...
Keywords:
Status: CLOSED DUPLICATE of bug 1004881
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:722b494ba6f15c3a4d686d5128a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-03 04:04 UTC by Mark
Modified: 2013-10-10 14:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-10 14:20:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mark 2013-10-03 04:04:51 UTC
Description of problem:
RDO, openstack-havana, allinone install, while puppet runs to configure swift this AVC deny happens. 
SELinux is preventing /usr/bin/python2.7 from 'name_bind' accesses on the tcp_socket .

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that python2.7 should be allowed name_bind access on the  tcp_socket 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 swift-account-s /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:swift_t:s0
Target Context                system_u:object_r:xserver_port_t:s0
Target Objects                 [ tcp_socket ]
Source                        swift-account-s
Source Path                   /usr/bin/python2.7
Port                          6002
Host                          (removed)
Source RPM Packages           python-2.7.5-4.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.8.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.11.2-201.fc19.x86_64 #1 SMP Fri
                              Sep 27 19:20:55 UTC 2013 x86_64 x86_64
Alert Count                   5
First Seen                    2013-09-30 16:29:36 MDT
Last Seen                     2013-10-02 21:48:08 MDT
Local ID                      10dc37f2-b6ca-4dc0-aa4e-deba0307096d

Raw Audit Messages
type=AVC msg=audit(1380772088.644:3526): avc:  denied  { name_bind } for  pid=14473 comm="swift-account-s" src=6002 scontext=system_u:system_r:swift_t:s0 tcontext=system_u:object_r:xserver_port_t:s0 tclass=tcp_socket


type=SYSCALL msg=audit(1380772088.644:3526): arch=x86_64 syscall=bind success=yes exit=0 a0=5 a1=7fff4a8ae820 a2=10 a3=f items=0 ppid=1 pid=14473 auid=4294967295 uid=1001 gid=1002 euid=1001 suid=1001 fsuid=1001 egid=1002 sgid=1002 fsgid=1002 ses=4294967295 tty=(none) comm=swift-account-s exe=/usr/bin/python2.7 subj=system_u:system_r:swift_t:s0 key=(null)

Hash: swift-account-s,swift_t,xserver_port_t,tcp_socket,name_bind

Additional info:
reporter:       libreport-2.1.7
hashmarkername: setroubleshoot
kernel:         3.11.2-201.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-10-04 15:06:12 UTC
Why is swift attemptting to bind to a Xserver port (6002)?

Comment 2 Miroslav Grepl 2013-10-10 14:20:24 UTC

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


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