Re: Reimplementing permission checks for rules

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Reimplementing permission checks for rules
Дата
Msg-id Pine.LNX.4.21.0009262329210.515-100000@peter
обсуждение исходный текст
Ответ на Reimplementing permission checks for rules  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Reimplementing permission checks for rules
Список pgsql-hackers
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.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: There's the rub... (a meta note)
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Reimplementing permission checks for rules