Hide Forgot
Description of problem: SELinux is preventing /usr/sbin/php-fpm from 'name_connect' accesses on the tcp_socket . ***** Plugin catchall_boolean (47.5 confidence) suggests ****************** If you want to allow httpd to can network connect Then you must tell SELinux about this by enabling the 'httpd_can_network_connect' boolean. You can read 'None' 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 to can network connect db Then you must tell SELinux about this by enabling the 'httpd_can_network_connect_db' boolean. You can read 'None' man page for more details. Do setsebool -P httpd_can_network_connect_db 1 ***** Plugin catchall (6.38 confidence) suggests ************************** If you believe that php-fpm 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 php-fpm /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 php-fpm Source Path /usr/sbin/php-fpm Port 3306 Host (removed) Source RPM Packages php-fpm-5.5.6-1.fc20.x86_64 Target RPM Packages Policy RPM selinux-policy-3.12.1-106.fc20.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 3.11.10-301.fc20.x86_64 #1 SMP Thu Dec 5 14:01:17 UTC 2013 x86_64 x86_64 Alert Count 6 First Seen 2013-12-08 16:34:49 YEKT Last Seen 2013-12-08 19:50:04 YEKT Local ID 46bb6956-5cb7-46d1-82c1-520506cffd1e Raw Audit Messages type=AVC msg=audit(1386510604.335:1147): avc: denied { name_connect } for pid=798 comm="php-fpm" dest=3306 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:mysqld_port_t:s0 tclass=tcp_socket type=SYSCALL msg=audit(1386510604.335:1147): arch=x86_64 syscall=connect success=no exit=EACCES a0=7 a1=7f076f0f3230 a2=10 a3=1 items=0 ppid=747 pid=798 auid=4294967295 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 ses=4294967295 tty=(none) comm=php-fpm exe=/usr/sbin/php-fpm subj=system_u:system_r:httpd_t:s0 key=(null) Hash: php-fpm,httpd_t,mysqld_port_t,tcp_socket,name_connect Additional info: reporter: libreport-2.1.9 hashmarkername: setroubleshoot kernel: 3.11.10-301.fc20.x86_64 type: libreport Potential duplicate: bug 887774
***** Plugin catchall_boolean (47.5 confidence) suggests ****************** If you want to allow httpd to can network connect db Then you must tell SELinux about this by enabling the 'httpd_can_network_connect_db' boolean. You can read 'None' man page for more details. Do # setsebool -P httpd_can_network_connect_db 1