Bug 989869 - SELinux is preventing /usr/sbin/httpd from 'name_connect' accesses on the tcp_socket .
Summary: SELinux is preventing /usr/sbin/httpd from 'name_connect' accesses on the tcp...
Keywords:
Status: CLOSED DUPLICATE of bug 872624
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:f55faa448aa60c909e2400fdb28...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-30 05:57 UTC by Marcus Summers
Modified: 2013-07-30 08:53 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-30 08:53:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Marcus Summers 2013-07-30 05:57:11 UTC
Description of problem:
SELinux is preventing /usr/sbin/httpd from 'name_connect' accesses on the tcp_socket .

*****  Plugin catchall_boolean (47.5 confidence) suggests  *******************

If you want to allow HTTPD scripts and modules to connect to the network using TCP.
Then you must tell SELinux about this by enabling the 'httpd_can_network_connect' boolean.
You can read 'mysqld_selinux' man page for more details.
Do
setsebool -P httpd_can_network_connect 1

*****  Plugin catchall_boolean (47.5 confidence) suggests  *******************

If you want to allow HTTPD scripts and modules to connect to databases over the network.
Then you must tell SELinux about this by enabling the 'httpd_can_network_connect_db' boolean.
You can read 'mysqld_selinux' man page for more details.
Do
setsebool -P httpd_can_network_connect_db 1

*****  Plugin catchall (6.38 confidence) suggests  ***************************

If you believe that httpd should be allowed name_connect 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 httpd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:httpd_t:s0
Target Context                system_u:object_r:mysqld_port_t:s0
Target Objects                 [ tcp_socket ]
Source                        httpd
Source Path                   /usr/sbin/httpd
Port                          63155
Host                          (removed)
Source RPM Packages           httpd-2.4.4-6.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-66.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.10.3-300.fc19.x86_64 #1 SMP Fri
                              Jul 26 00:00:58 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-07-30 00:54:29 EDT
Last Seen                     2013-07-30 00:54:29 EDT
Local ID                      1181c128-1054-4099-b581-29f4271f2111

Raw Audit Messages
type=AVC msg=audit(1375160069.606:18767): avc:  denied  { name_connect } for  pid=3641 comm="httpd" dest=63155 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:mysqld_port_t:s0 tclass=tcp_socket


type=SYSCALL msg=audit(1375160069.606:18767): arch=x86_64 syscall=connect success=no exit=EINPROGRESS a0=f a1=7ff3acb00420 a2=10 a3=0 items=0 ppid=1334 pid=3641 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 ses=4294967295 tty=(none) comm=httpd exe=/usr/sbin/httpd subj=system_u:system_r:httpd_t:s0 key=(null)

Hash: httpd,httpd_t,mysqld_port_t,tcp_socket,name_connect

Additional info:
reporter:       libreport-2.1.5
hashmarkername: setroubleshoot
kernel:         3.10.3-300.fc19.x86_64
type:           libreport

Potential duplicate: bug 872624

Comment 1 Miroslav Grepl 2013-07-30 08:53:07 UTC
The alert tells you what to do.

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


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