From: David Johnston <polobo@yahoo.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #8685: "alter default privileges" cannot revoke default execute privilege on functions
Date: Wed, 18 Dec 2013 12:21:25 -0800 (PST)
Message-ID: <1387398085142-5783947.post@n5.nabble.com> (raw)
In-Reply-To: <E1VtMTj-0002jS-5h@wrigleys.postgresql.org>
References: <E1VtMTj-0002jS-5h@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
mz wrote
> The following bug has been logged on the website:
>
> Bug reference: 8685
> Logged by: Manuel Zahariev
> Email address:
> mz@.sfu
> PostgreSQL version: 9.1.11
> Operating system: Ubuntu 13.10
> Description:
>
> ALTER DEFAULT PRIVILEGES REVOKE EXECUTE ON FUNCTIONS FROM
> <role>
> ...does not remove default execute privileges on functions
>
> db=# ALTER DEFAULT PRIVILEGES REVOKE EXECUTE ON FUNCTIONS FROM u;
"u" inherits its ability to execute functions from PUBLIC. With grants you
do not tell the system what not to do (i.e., it does not block already
granted permissions) but only what to allow. In order to revoke execute on
functions globally you must remove the corresponding GRANT from PUBLIC.
Revoking only removes a previously applied GRANT. In the case of default
privileges it only revokes previously established default grants.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: polobo@yahoo.com
Subject: Re: BUG #8685: "alter default privileges" cannot revoke default execute privilege on functions
In-Reply-To: <1387398085142-5783947.post@n5.nabble.com>
References: <E1VtMTj-0002jS-5h@wrigleys.postgresql.org> <1387398085142-5783947.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox