Permissions on aggregate component functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Permissions on aggregate component functions
Дата
Msg-id 23863.1106857674@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: Permissions on aggregate component functions
Re: Permissions on aggregate component functions
Список pgsql-hackers
I just noticed that there is no permission check anywhere in CREATE
AGGREGATE concerning the aggregate's transition and final functions.
This means anyone can trivially bypass the function EXECUTE permission
check: just make an aggregate function to call it for you.  (Now, this
works only for functions whose signature fits what an aggregate
expects, but for most one- and two-argument functions you can do it.)

Clearly this is a must-fix issue, but I'm wondering exactly where the
check should be enforced.  Is it sufficient to check at the time of
CREATE AGGREGATE that the creator has appropriate rights, or do we need
to do it every time the aggregate is used?
        regards, tom lane


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

Предыдущее
От: "Marc G. Fournier"
Дата:
Сообщение: Security Release Packaging ...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Security Release Packaging ...