Re: Security leak with trigger functions?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Security leak with trigger functions?
Дата
Msg-id 25178.1166131258@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Security leak with trigger functions?  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
>> ... we'd need to check the EXECUTE
>> privilege of the owner of the trigger.  The trick is figuring out who
>> the owner is.  If it's the owner of the table, then TRIGGER privilege
>> is effectively total control over the owner of the table.

> If that's the case, then a separate TRIGGER priveledge would seem to be 
> superfluous.

Yeah, you could make a good case for removing TRIGGER privilege and
making it be an ownership check, as we just did for RULE privilege.

> One thing to think about, though; our model allows granting ALTER 
> privelidge on a table to roles other than the table owner.

Huh?  ALTER requires ownership.
        regards, tom lane


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Security leak with trigger functions?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: unixware and --with-ldap