Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XQr67-000473-B3 for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Sep 2014 05:02:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XQr66-0007B6-5h for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Sep 2014 05:02:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XQr64-0007Ax-58 for pgsql-bugs@postgresql.org; Mon, 08 Sep 2014 05:02:36 +0000 Received: from mail-qg0-f41.google.com ([209.85.192.41]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XQr5z-0007LW-9o for pgsql-bugs@postgresql.org; Mon, 08 Sep 2014 05:02:33 +0000 Received: by mail-qg0-f41.google.com with SMTP id a108so1396647qge.28 for ; Sun, 07 Sep 2014 22:02:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=hC/nmZHZe2RxB84cM7oiJEkMKUzUEFmqPBKCUnq9hlw=; b=YNWcOQ38YfV4Od98bDC+fIXtdnmq4SqQpgxh/BGQ3aeXL/PeNczPWVDwnPs12PxhX0 0i5rN78RBwQiTsEygxaDDAG925+aJD867xNg78PxYcS8I9DB79D+ilRTO6zXXKGvs5/q 1KeLgCkel3YmDoioSVfS/s5iwoU492uy+cOSrDlnvHo3/pLVy+W7gZz5oujTguB9gk3k loeHDNpZ1zgWhWDQGNWjmudAUf12JqAREdKS6vbRgFjuLjFrlUoxBxtdF+tKZc/3IHrj nUQI9SUvUJHAJDKeTdbXY7DZ/Tspl2rE9xzTWb9b1jyldSorTehzpYBJOnApx0uBrhiS tt5A== X-Gm-Message-State: ALoCoQn17KLFFG1MPB4/hYgC3F8Za8Xzii4aufrOksFk3xsCeDoTqYR7eyrfLTcU9NuKHzySIoWP X-Received: by 10.140.30.136 with SMTP id d8mr37025217qgd.55.1410152550259; Sun, 07 Sep 2014 22:02:30 -0700 (PDT) Received: from jupiter.onmars.janwieck.no-ip.info ([96.245.45.77]) by mx.google.com with ESMTPSA id y10sm6950914qar.29.2014.09.07.22.02.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 07 Sep 2014 22:02:29 -0700 (PDT) Message-ID: <540D3865.1050102@wi3ck.info> Date: Mon, 08 Sep 2014 01:02:29 -0400 From: Jan Wieck User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.8.0 MIME-Version: 1.0 To: John R Pierce , 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> In-Reply-To: <540CDA93.1040301@hogranch.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.8 (--) 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 09/07/2014 06:22 PM, John R Pierce wrote: > 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. "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. Regards, Jan -- Jan Wieck Senior Software Engineer http://slony.info -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs