Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XQs64-000689-HJ for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Sep 2014 06:06:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XQs64-0004lQ-0X for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Sep 2014 06:06:40 +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 1XQs62-0004jl-Ul for pgsql-bugs@postgresql.org; Mon, 08 Sep 2014 06:06:39 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XQs5y-0003Uz-BD for pgsql-bugs@postgresql.org; Mon, 08 Sep 2014 06:06:37 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id s8866PZ06457 for ; Sun, 7 Sep 2014 23:06:26 -0700 Message-ID: <540D475C.5010808@hogranch.com> Date: Sun, 07 Sep 2014 23:06:20 -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> <540CDA93.1040301@hogranch.com> <540D3865.1050102@wi3ck.info> In-Reply-To: <540D3865.1050102@wi3ck.info> 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 10:02 PM, Jan Wieck wrote: >> 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. > I probably should have said 'could' instead of 'probably should'. > "Some special RPM" to do what exactly? Just because someone has > PostgreSQL and Apache installed on their system doesn't mean they > wanted httpd to be able to try to connect to their MySQL server on > another machine in the network. Precisely that is what > httpd_can_network_connect_db would allow (as a side effect). > > So please be more precise in what exactly that special RPM should set > or enable. this RPM would be called something like postgresqlXY-apache-selinuxpolicy, and if installed, it would add the selinux policy that allows apache to connect to postgres version X.Y as installed from the same repository. if uninstalled, it would remove that policy. -- 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