Re: Allowing to create LEAKPROOF functions to non-superuser

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Allowing to create LEAKPROOF functions to non-superuser
Дата
Msg-id 20210412210147.jpn3gcgfgpdcrc43@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Allowing to create LEAKPROOF functions to non-superuser  (Andrey Borodin <x4mmm@yandex-team.ru>)
Ответы Re: Allowing to create LEAKPROOF functions to non-superuser
Re: Allowing to create LEAKPROOF functions to non-superuser
Список pgsql-hackers
Hi,

On 2021-04-12 23:51:02 +0300, Andrey Borodin wrote:
> Do I risk having some extra superusers in my installation if I allow
> everyone to create LEAKPROOF functions?

I think that depends on what you define "superuser" to exactly
be. Defining it as "has a path to executing arbitrary native code", I
don't think, if implemented sensibly, allowing to set LEAKPROOF on new
functions would equate superuser permissions. But you soon after might
hit further limitations where lifting them would have such a risk,
e.g. defining new types with in/out functions.

Greetings,

Andres Freund



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

Предыдущее
От: Andrey Borodin
Дата:
Сообщение: Re: Allowing to create LEAKPROOF functions to non-superuser
Следующее
От: Andrey Borodin
Дата:
Сообщение: Re: Allowing to create LEAKPROOF functions to non-superuser