Re: BUG #11365: denied apache cgi connect

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #11365: denied apache cgi connect
Дата
Msg-id 6186.1410107784@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #11365: denied apache cgi connect  (chenchuanling@msn.com)
Ответы Re: BUG #11365: denied apache cgi connect  (John R Pierce <pierce@hogranch.com>)
Список pgsql-bugs
chenchuanling@msn.com writes:
> Centos 6.3 integrated 8.4.11 version no problem,but upgrade to version 9.3.5
> apache cgi connection denied.Must be set: setenforce 0, such ability can
> be.

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" ...

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: chenchuanling@msn.com
Дата:
Сообщение: BUG #11365: denied apache cgi connect
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: BUG #11365: denied apache cgi connect