Re: Reimplementing permission checks for rules

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Reimplementing permission checks for rules
Дата
Msg-id 6739.970065698@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Reimplementing permission checks for rules  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Reimplementing permission checks for rules
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane writes:
>> What I'm thinking about doing is eliminating the "skipAcl" RTE field
>> and instead adding an Oid field named something like "checkAclAs".
>> The semantics of this field would be "if zero, check access permissions
>> for this table using the current effective userID; but if not zero,
>> check access permissions as if you are this userID".  Then the rule
>> rewriter would do no access permission checks of its own, but would
>> set this field appropriately in RTEs that it adds to queries.  All the
>> actual permissions checking would happen in one place in the executor.

> I like it.

OK.  BTW, what is the status of the changeover you proposed re using
OIDs instead of int4 userids as the unique identifiers for users?
In other words, should my field be type Oid or type int4?
        regards, tom lane


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

Предыдущее
От: Papp Gyozo
Дата:
Сообщение: Re: Dynamic application data refreshing
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Installation layout is still hazardous for shared prefixes