Discerning when functions had execute revoked from public

Поиск
Список
Период
Сортировка
От Todd Kover
Тема Discerning when functions had execute revoked from public
Дата
Msg-id 201301082126.r08LQsHZ026074@guinness.omniscient.com
обсуждение исходный текст
Ответы Re: Discerning when functions had execute revoked from public  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Discerning when functions had execute revoked from public  (Jerry Sievers <gsievers19@comcast.net>)
Список pgsql-general
I am trying to write something that will enumerate grants/revokes on
functions to make sure they are adjusted properly after said function is
drop/recreated, should that happen.  This will also be used to validate
that permissions are what they should be.

According to:

http://www.postgresql.org/docs/9.2/static/sql-createfunction.html

 } Another point to keep in mind is that by default, execute privilege
 } is granted to PUBLIC for newly created functions (see GRANT for
 } more information). Frequently you will wish to restrict use of a
 } security definer function to only some users. To do that, you must
 } revoke the default PUBLIC privileges and then grant execute privilege
 } selectively. To avoid having a window where the new function is
 } accessible to all, create it and set the privileges within a single
 } transaction.

This revocation from public happens in our environment.  Trouble is, I
can not find where an indiciation that execute has been revoked from
public in pg_catalog.pg_proc (or any other table for that matter).  Is
there a way to find this somewhere in the catalog?

Apologies if this should be obvious.  I'm sure I will find it as soon as
I hit send.  :-)

thanks,
-Todd


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

Предыдущее
От: David Fuhry
Дата:
Сообщение: Re: pgxs "missing magic block ... PG_MODULE_MAGIC" with "MODULE_big"
Следующее
От: Kirk Wythers
Дата:
Сообщение: query by partial timestamp