pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO
Date: Thu, 22 Jan 2015 13:09:16 -0500
Message-ID: <20150122180916.GH27749@momjian.us> (raw)
In-Reply-To: <20150122175451.GD1663@alvh.no-ip.org>
References: <E1YELgv-0007mA-Rk@gemulon.postgresql.org>
	<20150122175451.GD1663@alvh.no-ip.org>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

On Thu, Jan 22, 2015 at 02:54:51PM -0300, Alvaro Herrera wrote:
> Bruce Momjian wrote:
> > adjust ACL owners for REASSIGN and ALTER OWNER TO
> > 
> > When REASSIGN and ALTER OWNER TO are used, both the object owner and ACL
> > list should be changed from the old owner to the new owner. This patch
> > fixes types, foreign data wrappers, and foreign servers to change their
> > ACL list properly;  they already changed owners properly.
> 
> Isn't this a backpatchable bug fix?

Uh, I don't think so as it changes _security_ behavior that people might
be relying on.  The issue is that you might be expecting to keep the
same permissions on the old owner and your script might just add the new
owner ACL, while the patch removes the old owner's ACL and adds the new
user to be consistent with other types.

My big question is whether this change is something we would mention as
backward incompatible in the 9.5 release notes.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (7+ messages)  latest in thread

Message-ID: <20150122180916.GH27749@momjian.us>
Permalink:  ../20150122180916.GH27749@momjian.us/
Also on:    postgresql.org/message-id/20150122180916.GH27749@momjian.us

 · 

reply

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-committers@postgresql.org
  Cc: bruce@momjian.us, alvherre@2ndquadrant.com
  Subject: Re: pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO
  In-Reply-To: <20150122180916.GH27749@momjian.us>
  References: <E1YELgv-0007mA-Rk@gemulon.postgresql.org> <20150122175451.GD1663@alvh.no-ip.org> <20150122180916.GH27749@momjian.us>

* 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