Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XQkqt-0007zW-A4 for pgsql-bugs@arkaria.postgresql.org; Sun, 07 Sep 2014 22:22:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XQkqs-0002br-Nd for pgsql-bugs@arkaria.postgresql.org; Sun, 07 Sep 2014 22:22:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XQkqr-0002aB-Jl for pgsql-bugs@postgresql.org; Sun, 07 Sep 2014 22:22:29 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XQkqk-0003I8-EA for pgsql-bugs@postgresql.org; Sun, 07 Sep 2014 22:22:28 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id s87MMGZ02083 for ; Sun, 7 Sep 2014 15:22:16 -0700 Message-ID: <540CDA93.1040301@hogranch.com> Date: Sun, 07 Sep 2014 15:22:11 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #11365: denied apache cgi connect References: <20140907010508.2923.21990@wrigleys.postgresql.org> <6186.1410107784@sss.pgh.pa.us> In-Reply-To: <6186.1410107784@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -3.6 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 9/7/2014 9:36 AM, Tom Lane wrote: > That's not something the PG community can do anything about. If there's a > bug in the SELinux policy for apache, you need to complain to Red Hat to > get it fixed. > > I suspect though that if you dig a little bit, you will find that this > case has been foreseen, and there's a SELinux policy boolean that you > are supposed to set to allow apache processes to do database access. > A quick browse in the output of "semanage boolean -l" suggests that > "allow_user_postgresql_connect" might be the right thing, or maybe > "httpd_can_network_connect_db" ... the PGDG packagers probably should include some level of database selinux policy settings. maybe a special RPM that sets the apache database policy or something. -- john r pierce 37N 122W somewhere on the middle of the left coast -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs