Re: [HACKERS] Permissions on aggregate component functions

2005-01-28 Thread Richard Huxton
Simon Riggs wrote: 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? Well spotted. Check should

Re: [HACKERS] Permissions on aggregate component functions

2005-01-27 Thread Simon Riggs
On Thu, 2005-01-27 at 15:27 -0500, Tom Lane wrote: > 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 fu

Re: [HACKERS] Permissions on aggregate component functions

2005-01-27 Thread Bruno Wolff III
On Thu, Jan 27, 2005 at 15:27:54 -0500, Tom Lane <[EMAIL PROTECTED]> wrote: > 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

[HACKERS] Permissions on aggregate component functions

2005-01-27 Thread Tom Lane
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 funct