Re: Using an alternate PGDATA on RHEL4 with SELinux enabled
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Using an alternate PGDATA on RHEL4 with SELinux enabled |
| Дата | |
| Msg-id | 21422.1154097323@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Using an alternate PGDATA on RHEL4 with SELinux enabled ("David Esposito" <pgsql-general@esposito.newnetco.com>) |
| Список | pgsql-general |
"David Esposito" <pgsql-general@esposito.newnetco.com> writes:
>> -----Original Message-----
>> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
>> The default selinux policy prevents postgres from writing anywhere
>> except under /var/lib/pgsql. If you want a nondefault PGDATA location
>> then you have to tweak the policy.
> It's not that simple ... if I su to postgres, I can initdb and launch
> postmaster in any directory I wish (as long as it has rwx for the postgres
> user) ... it's only if I try to do this from the init.d start script that
> the problem occurs ...
Yes, it is that simple. Processes launched from start scripts inherit
a different (much more restrictive) selinux context than ones launched
from interactive shells.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера