Re: sudo-like behavior

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: sudo-like behavior
Дата
Msg-id 7978.1145729311@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: sudo-like behavior  ("Florian G. Pflug" <fgp@phlo.org>)
Ответы Re: sudo-like behavior  ("Florian G. Pflug" <fgp@phlo.org>)
Список pgsql-general
"Florian G. Pflug" <fgp@phlo.org> writes:
> Why don't you just use "SET SESSION AUTHORIZATION somerole", and then scan
> the to-be-executel sql scripts for any occurence of "reset session authorization",
> and ignore the script it matches.

What would probably be better is a way to do SET SESSION AUTHORIZATION
and then abandon the underlying superuser privilege, thereby absolutely
guaranteeing that the session can't do anything the selected userid
shouldn't be able to do.  You'd have to start a new session for each
cronjob, but that would be a Really Good Idea anyway, given the lack of
any way to fully restore a session to default state.

            regards, tom lane

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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: Debian package for freeradius_postgresql module
Следующее
От: "Florian G. Pflug"
Дата:
Сообщение: Re: sudo-like behavior