Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XQsNZ-0006h4-CY for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Sep 2014 06:24:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XQsNY-0006ww-K1 for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Sep 2014 06:24:44 +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 1XQsNX-0006wo-No for pgsql-bugs@postgresql.org; Mon, 08 Sep 2014 06:24:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XQsNO-0003oZ-MM for pgsql-bugs@postgresql.org; Mon, 08 Sep 2014 06:24:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s886OQGf011377; Mon, 8 Sep 2014 02:24:26 -0400 From: Tom Lane To: John R Pierce cc: pgsql-bugs@postgresql.org Subject: Re: BUG #11365: denied apache cgi connect In-reply-to: <540D475C.5010808@hogranch.com> References: <20140907010508.2923.21990@wrigleys.postgresql.org> <6186.1410107784@sss.pgh.pa.us> <540CDA93.1040301@hogranch.com> <540D3865.1050102@wi3ck.info> <540D475C.5010808@hogranch.com> Comments: In-reply-to John R Pierce message dated "Sun, 07 Sep 2014 23:06:20 -0700" Date: Mon, 08 Sep 2014 02:24:26 -0400 Message-ID: <11376.1410157466@sss.pgh.pa.us> 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 John R Pierce writes: > On 9/7/2014 10:02 PM, Jan Wieck wrote: >> 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. Hm ... would that not be in direct conflict with existing policy variables? I don't actually know a lot about what the standard Red Hat selinux policy does in this area. If it were seriously broken, I'd probably have heard more about it during the years I worked there. Not that that's much of an argument, but it's some evidence for "there's no fire here, only smoke". Anyway, I remain of the opinion that it'd be best to press Red Hat's selinux people to fix/clarify/document their policy's behavior for apache-to-database connections. Trying to override the system policy with drive-by updates seems like a recipe for disaster. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs