Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VtNNJ-0007OG-0d for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Dec 2013 20:05:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VtNNI-0002xG-H1 for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Dec 2013 20:05:44 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VtMTu-0005D5-4W for pgsql-bugs@postgresql.org; Wed, 18 Dec 2013 19:08:30 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VtMTq-0000kk-SY for pgsql-bugs@postgresql.org; Wed, 18 Dec 2013 19:08:29 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by mahout.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VtMTp-0005yw-GZ for pgsql-bugs@postgresql.org; Wed, 18 Dec 2013 19:08:26 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1VtMTj-0002jS-5h for pgsql-bugs@postgresql.org; Wed, 18 Dec 2013 19:08:19 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8685: "alter default privileges" cannot revoke default execute privilege on functions To: pgsql-bugs@postgresql.org From: mz@alumni.sfu.ca Message-Id: Date: Wed, 18 Dec 2013 19:08:19 +0000 X-Pg-Spam-Score: -1.0 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8685 Logged by: Manuel Zahariev Email address: mz@alumni.sfu.ca PostgreSQL version: 9.1.11 Operating system: Ubuntu 13.10 Description: ALTER DEFAULT PRIVILEGES REVOKE EXECUTE ON FUNCTIONS FROM ...does not remove default execute privileges on functions ==================== Log: $sudo -u postgres psql psql (9.1.11) Type "help" for help. postgres=# CREATE DATABASE db; CREATE DATABASE postgres=# CREATE ROLE u WITH PASSWORD '1234' login; CREATE ROLE postgres=# \c db You are now connected to database "db" as user "postgres". db=# ALTER DEFAULT PRIVILEGES REVOKE EXECUTE ON FUNCTIONS FROM u; ALTER DEFAULT PRIVILEGES db=# CREATE FUNCTION f() RETURNS varchar AS $$ db$# SELECT 'Hello'::varchar; db$# $$ LANGUAGE 'SQL' SECURITY DEFINER; CREATE FUNCTION db=# SELECT * FROM f(); f ------- Hello (1 row) db=# \q $psql -h localhost db u Password for user u: psql (9.1.11) SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) Type "help" for help. db=> SELECT * FROM f(); -- should fail f ------- Hello (1 row) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs