Re: BUG #11365: denied apache cgi connect

From: Jan Wieck <jan(at)wi3ck(dot)info>
To: John R Pierce <pierce(at)hogranch(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #11365: denied apache cgi connect
Date: 2014-09-08 05:02:29
Message-ID: 540D3865.1050102@wi3ck.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message John R Pierce 2014-09-08 06:06:20 Re: BUG #11365: denied apache cgi connect
Previous Message Stephen Frost 2014-09-08 04:17:50 Re: [BUGS] BUG #10823: Better REINDEX syntax.