Re: RI permission problem
От | Tom Lane |
---|---|
Тема | Re: RI permission problem |
Дата | |
Msg-id | 27411.989297759@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: RI permission problem (Peter Eisentraut <peter_e@gmx.net>) |
Список | pgsql-sql |
Peter Eisentraut <peter_e@gmx.net> writes: > Kyle writes: >> Shouldn't the select access to the view trickle down to subordinate select functions? > I would think not. I agree with Peter. If user A creates a view that includes a call of a function written by user B, does user A want user B's function to run with all of user A's permissions? Not if he's adequately paranoid. The function could do all sorts of damage above and beyond its advertised task. The correct solution to this is to allow a function to run with its owner's permissions (if the owner wants to mark it setuid). In your example, func_v1 and func_v2 should have permission to read atab_v1 and atab_v2 in their own right, independently of who calls them. This does bring up the thought that we might like to control who can call func_v1 and func_v2, however (by analogy to execute permissions on Unix programs). We have ACLs for tables, but none yet for functions... regards, tom lane
В списке pgsql-sql по дате отправления: