Bug 187990

Summary: avc denied messages when using the php-pgsql package
Product: [Fedora] Fedora Reporter: Ben <bench>
Component: selinux-policy-targetedAssignee: Russell Coker <rcoker>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-07 10:06:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ben 2006-04-05 06:38:39 UTC
Targeted policy appears to not support the php-pgsql package, as indicated by
the following AVC message generated any time a php page with a postgres
connection is served up:


kernel: audit(1144219249.530:10): avc:  denied  { name_connect } for  pid=3474
comm="httpd" dest=5432 scontext=root:system_r:httpd_t:s0
tcontext=system_u:object_r:postgresql_port_t:s0 tclass=tcp_socket

Comment 1 Daniel Walsh 2006-04-05 12:45:03 UTC
setsebool -P httpd_can_network_connect_db=1

You need to turn on the httpd database boolean.  



Comment 2 Ben 2006-04-06 00:51:52 UTC
excellent, thank you.

This would seem to be a bug against php-pgsql, then? I'm reassigning it to php
for lack of a php-pgsql component.

Comment 3 Joe Orton 2006-04-07 10:06:57 UTC
When you reassign a bug you need to check the "Reassign bug to owner and QA
contact of selected component" link otherwise it gets lost in limbo.

But no: this is desired default behaviour; you have to specifically enable the
boolean as Dan explained.