SELinux is preventing /usr/sbin/httpd from name_connect access on the tcp_socket port 5432.
***** Sugerencia de complemento catchall_boolean (47.5 confidence) *********
Siyou want to allow HTTPD scripts and modules to connect to the network using any TCP port.
Entoncesyou must tell SELinux about this by enabling the 'httpd_can_network_connect' boolean.
Hacer
setsebool -P httpd_can_network_connect 1
***** Sugerencia de complemento catchall_boolean (47.5 confidence) *********
Siyou want to allow HTTPD scripts and modules to connect to databases over the network.
Entoncesyou must tell SELinux about this by enabling the 'httpd_can_network_connect_db' boolean.
Hacer
setsebool -P httpd_can_network_connect_db 1
***** Sugerencia de complemento catchall (6.38 confidence) *****************
Siyou believe that httpd should be allowed name_connect access on the port 5432 tcp_socket by default.
Entoncesyou should report this as a bug.
You can generate a local policy module to allow this access.
Hacer
allow this access for now by executing:
# grep httpd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp
Additional Information:
Contexto Fuente system_u:system_r:httpd_t:s0
Contexto Destino system_u
bject_r
ostgresql_port_t:s0
Objetos Destino port 5432 [ tcp_socket ]
Fuente httpd
Dirección de Fuente /usr/sbin/httpd
Puerto 5432
Nombre de Equipo juan.casazapata
Paquetes RPM Fuentes httpd-2.2.21-1.fc15
Paquetes RPM Destinos
RPM de Políticas selinux-policy-3.9.16-38.fc15
SELinux Activado True
Tipo de Política targeted
Modo Obediente Enforcing
Nombre de Equipo juan.casazapata
Plataforma Linux juan.casazapata 2.6.40.4-5.fc15.i686.PAE #1
SMP Tue Aug 30 14:43:52 UTC 2011 i686 i686
Cantidad de Alertas 8
Visto por Primera Vez mié 05 oct 2011 18:07:54 COT
Visto por Última Vez mié 05 oct 2011 18:19:56 COT
ID Local bf2e86ee-20de-4a32-9994-ee38b438ca3f
Mensajes de Auditoría Crudos
type=AVC msg=audit(1317856796.479:226): avc: denied { name_connect } for pid=5970 comm="httpd" dest=5432 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u
bject_r
ostgresql_port_t:s0 tclass=tcp_socket
type=SYSCALL msg=audit(1317856796.479:226): arch=i386 syscall=socketcall success=no exit=EACCES a0=3 a1=bfe81200 a2=b9bf38 a3=21e7eef8 items=0 ppid=5965 pid=5970 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm=httpd exe=/usr/sbin/httpd subj=system_u:system_r:httpd_t:s0 key=(null)
Hash: httpd,httpd_t,postgresql_port_t,tcp_socket,name_connect
audit2allow
#============= httpd_t ==============
#!!!! This avc can be allowed using one of the these booleans:
# httpd_can_network_connect, httpd_can_network_connect_db
allow httpd_t postgresql_port_t:tcp_socket name_connect;
audit2allow -R
#============= httpd_t ==============
#!!!! This avc can be allowed using one of the these booleans:
# httpd_can_network_connect, httpd_can_network_connect_db
allow httpd_t postgresql_port_t:tcp_socket name_connect;