pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO
7+ messages / 3 participants
[nested] [flat]
* pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO
@ 2015-01-22 17:37 Bruce Momjian <bruce@momjian.us>
2015-01-22 17:54 ` Re: pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO Alvaro Herrera <alvherre@2ndquadrant.com>
0 siblings, 1 reply; 7+ messages in thread
From: Bruce Momjian @ 2015-01-22 17:37 UTC (permalink / raw)
To: pgsql-committers
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.
BACKWARD INCOMPATIBILITY?
Report by Alexey Bashtanov
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/59367fdf97cc1875b053ebf87cd1e071dc7f3640
Modified Files
--------------
src/backend/commands/foreigncmds.c | 56 ++++++++++++++-
src/backend/commands/typecmds.c | 65 ++++++++++++++---
src/test/regress/expected/foreign_data.out | 104 ++++++++++++++--------------
3 files changed, 161 insertions(+), 64 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO
2015-01-22 17:37 pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO Bruce Momjian <bruce@momjian.us>
@ 2015-01-22 17:54 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2015-01-22 18:09 ` Re: pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 7+ messages in thread
From: Alvaro Herrera @ 2015-01-22 17:54 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-committers
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?
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
* Re: pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO
2015-01-22 17:37 pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO Bruce Momjian <bruce@momjian.us>
2015-01-22 17:54 ` Re: pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2015-01-22 18:09 ` Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 7+ messages in thread
From: Bruce Momjian @ 2015-01-22 18:09 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO
@ 2015-12-21 22:18 Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 0 replies; 7+ messages in thread
From: Alvaro Herrera @ 2015-12-21 22:18 UTC (permalink / raw)
To: pgsql-committers
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.
Report by Alexey Bashtanov
This is a backpatch of commit 59367fdf97c (for bug #9923) by Bruce
Momjian to branches 9.1 - 9.4; it wasn't backpatched originally out of
concerns that it would create a backwards compatibility problem, but per
discussion related to bug #13666 that turns out to have been misguided.
(Therefore, the entry in the 9.5 release notes should be removed.)
Note that 9.1 didn't have privileges on types (which were introduced by
commit 729205571e81), so this commit only changes foreign-data related
objects in that branch.
Discussion: http://www.postgresql.org/message-id/20151216224004.GL2618@alvherre.pgsql
http://www.postgresql.org/message-id/10227.1450373793@sss.pgh.pa.us
Branch
------
REL9_4_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/2c8ae6442fed47a28320ad470c30bb1b9a31e856
Modified Files
--------------
src/backend/commands/foreigncmds.c | 56 ++++++++++++++-
src/backend/commands/typecmds.c | 65 ++++++++++++++---
src/test/regress/expected/foreign_data.out | 104 ++++++++++++++--------------
3 files changed, 161 insertions(+), 64 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO
@ 2015-12-21 22:18 Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 0 replies; 7+ messages in thread
From: Alvaro Herrera @ 2015-12-21 22:18 UTC (permalink / raw)
To: pgsql-committers
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.
Report by Alexey Bashtanov
This is a backpatch of commit 59367fdf97c (for bug #9923) by Bruce
Momjian to branches 9.1 - 9.4; it wasn't backpatched originally out of
concerns that it would create a backwards compatibility problem, but per
discussion related to bug #13666 that turns out to have been misguided.
(Therefore, the entry in the 9.5 release notes should be removed.)
Note that 9.1 didn't have privileges on types (which were introduced by
commit 729205571e81), so this commit only changes foreign-data related
objects in that branch.
Discussion: http://www.postgresql.org/message-id/20151216224004.GL2618@alvherre.pgsql
http://www.postgresql.org/message-id/10227.1450373793@sss.pgh.pa.us
Branch
------
REL9_3_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/62e6eba8d26618e1a20cf29a94c1ce6d68d40f4e
Modified Files
--------------
src/backend/commands/foreigncmds.c | 56 ++++++++++++++-
src/backend/commands/typecmds.c | 65 ++++++++++++++---
src/test/regress/expected/foreign_data.out | 104 ++++++++++++++--------------
3 files changed, 161 insertions(+), 64 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO
@ 2015-12-21 22:18 Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 0 replies; 7+ messages in thread
From: Alvaro Herrera @ 2015-12-21 22:18 UTC (permalink / raw)
To: pgsql-committers
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.
Report by Alexey Bashtanov
This is a backpatch of commit 59367fdf97c (for bug #9923) by Bruce
Momjian to branches 9.1 - 9.4; it wasn't backpatched originally out of
concerns that it would create a backwards compatibility problem, but per
discussion related to bug #13666 that turns out to have been misguided.
(Therefore, the entry in the 9.5 release notes should be removed.)
Note that 9.1 didn't have privileges on types (which were introduced by
commit 729205571e81), so this commit only changes foreign-data related
objects in that branch.
Discussion: http://www.postgresql.org/message-id/20151216224004.GL2618@alvherre.pgsql
http://www.postgresql.org/message-id/10227.1450373793@sss.pgh.pa.us
Branch
------
REL9_2_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/7af3dd540e29d057ff11d5c3ed946b071885c66f
Modified Files
--------------
src/backend/commands/foreigncmds.c | 56 ++++++++++++++-
src/backend/commands/typecmds.c | 65 ++++++++++++++---
src/test/regress/expected/foreign_data.out | 104 ++++++++++++++--------------
3 files changed, 161 insertions(+), 64 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO
@ 2015-12-21 22:18 Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 0 replies; 7+ messages in thread
From: Alvaro Herrera @ 2015-12-21 22:18 UTC (permalink / raw)
To: pgsql-committers
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.
Report by Alexey Bashtanov
This is a backpatch of commit 59367fdf97c (for bug #9923) by Bruce
Momjian to branches 9.1 - 9.4; it wasn't backpatched originally out of
concerns that it would create a backwards compatibility problem, but per
discussion related to bug #13666 that turns out to have been misguided.
(Therefore, the entry in the 9.5 release notes should be removed.)
Note that 9.1 didn't have privileges on types (which were introduced by
commit 729205571e81), so this commit only changes foreign-data related
objects in that branch.
Discussion: http://www.postgresql.org/message-id/20151216224004.GL2618@alvherre.pgsql
http://www.postgresql.org/message-id/10227.1450373793@sss.pgh.pa.us
Branch
------
REL9_1_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/ab14c1383836301f00461b2a5593aebd340dd801
Modified Files
--------------
src/backend/commands/foreigncmds.c | 56 ++++++++++++++++++++-
src/test/regress/expected/foreign_data.out | 75 ++++++++++++++--------------
2 files changed, 92 insertions(+), 39 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2015-12-21 22:18 UTC | newest]
Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 17:37 pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO Bruce Momjian <bruce@momjian.us>
2015-01-22 17:54 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2015-01-22 18:09 ` Bruce Momjian <bruce@momjian.us>
2015-12-21 22:18 pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO Alvaro Herrera <alvherre@alvh.no-ip.org>
2015-12-21 22:18 pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO Alvaro Herrera <alvherre@alvh.no-ip.org>
2015-12-21 22:18 pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO Alvaro Herrera <alvherre@alvh.no-ip.org>
2015-12-21 22:18 pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO Alvaro Herrera <alvherre@alvh.no-ip.org>
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