Re: superuser() shortcuts

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: superuser() shortcuts
Дата
Msg-id 54831160.4060706@gmx.net
обсуждение исходный текст
Ответ на Re: superuser() shortcuts  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
On 12/4/14 3:32 PM, Stephen Frost wrote:
> On reflection, this seemed odd because of how the code was written but
> perhaps it was intentional after all.  In general, superuser should be
> able to bypass permissions restrictions and I don't see why this case
> should be different.

> In general, I don't think we want to allow "giving away" of objects by
> unprivileged users.  We don't allow that to be done for tables and I'm
> surprised to hear that it's possible to give domains away.

> Superuser should be able to bypass the restriction, BUT the object given
> away by the superuser to an unprivileged user should NOT be able to be
> further given away by that unprivileged user.

Clearly, this issue is a bit more complex than a simple code cleanup.
So I'm going to set this patch as returned with feedback.

My suggestion for moving forward would be to define a general security
policy for the ALTER OWNER cases, and then fix those properly.

The changes for integration the superuser check into the replication
role check should perhaps be tackled as part of a general refactoring of
capability checks.





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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [REVIEW] Re: Compression of full-page-writes
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Role Attribute Bitmask Catalog Representation