Re: [PATCH] Re: Setuid functions

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: [PATCH] Re: Setuid functions
Дата
Msg-id
Pine.LNX.4.30.0106231732430.724-100000@peter.localdomain
Ответ на
Список
Дерево обсуждения
[PATCH] Re: Setuid functions Mark Volpe <volpe.mark@epa.gov>
Re: [PATCH] Re: Setuid functions Bruce Momjian <pgman@candle.pha.pa.us>
Re: [PATCH] Re: Setuid functions Bruce Momjian <pgman@candle.pha.pa.us>
Re: [PATCH] Re: Setuid functions Peter Eisentraut <peter_e@gmx.net>
Re: [PATCH] Re: Setuid functions Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Re: Setuid functions Philip Warner <pjw@rhyme.com.au>
Re: [PATCH] Re: Setuid functions Peter Eisentraut <peter_e@gmx.net>
Mark Volpe writes:

> This patch will implement the "ENABLE PRIVILEGE" and "DISABLE PRIVILEGE"
> commands   in PL/pgSQL, which, respectively, change the effective uid to that
> of the function owner and back.

May I suggest better names?  When I do DISABLE PRIVILEGE, do I no longer
have any privilege?  Also, in SQL, the term "privilege" refers to
select/insert/update/etc. right on some table, so "enable privilege" would
be "grant".  The term for user identity is "authorization", so I would
call these commands
 SET AUTHORIZATION { INVOKER | DEFINER }

("invoker" and "definer" are part of the SQL CREATE FUNCTION syntax) and
the default would be invoker.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Peter Eisentraut
Дата:
Сообщение: Re: Setuid functions
FAQ