pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix pg_dump for GRANT OPTION among initial privileges. 6+ messages / 1 participants [nested] [flat]
* pgsql: Fix pg_dump for GRANT OPTION among initial privileges. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix pg_dump for GRANT OPTION among initial privileges. The context is an object that no longer bears some aclitem that it bore initially. (A user issued REVOKE or GRANT statements upon the object.) pg_dump is forming SQL to reproduce the object ACL. Since initdb creates no ACL bearing GRANT OPTION, reaching this bug requires an extension where the creation script establishes such an ACL. No PGXN extension does that. If an installation did reach the bug, pg_dump would have omitted a semicolon, causing a REVOKE and the next SQL statement to fail. Separately, since the affected code exists to eliminate an entire aclitem, it wants plain REVOKE, not REVOKE GRANT OPTION FOR. Back-patch to 9.6, where commit 23f34fa4ba358671adab16773e79c17c92cbc870 first appeared. Discussion: https://postgr.es/m/20210109102423.GA160022@rfd.leadboat.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/f713ff7c646e5912e08089de74dacdfaaac3d03b Modified Files -------------- src/bin/pg_dump/dumputils.c | 61 ++++++++-------------- src/test/modules/test_pg_dump/t/001_base.pl | 39 ++++++++++++++ .../modules/test_pg_dump/test_pg_dump--1.0.sql | 9 ++++ 3 files changed, 70 insertions(+), 39 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix pg_dump for GRANT OPTION among initial privileges. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix pg_dump for GRANT OPTION among initial privileges. The context is an object that no longer bears some aclitem that it bore initially. (A user issued REVOKE or GRANT statements upon the object.) pg_dump is forming SQL to reproduce the object ACL. Since initdb creates no ACL bearing GRANT OPTION, reaching this bug requires an extension where the creation script establishes such an ACL. No PGXN extension does that. If an installation did reach the bug, pg_dump would have omitted a semicolon, causing a REVOKE and the next SQL statement to fail. Separately, since the affected code exists to eliminate an entire aclitem, it wants plain REVOKE, not REVOKE GRANT OPTION FOR. Back-patch to 9.6, where commit 23f34fa4ba358671adab16773e79c17c92cbc870 first appeared. Discussion: https://postgr.es/m/20210109102423.GA160022@rfd.leadboat.com Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b8daf894f0d3440dd79131e12221c30b114e4b3e Modified Files -------------- src/bin/pg_dump/dumputils.c | 61 ++++++++-------------- src/test/modules/test_pg_dump/t/001_base.pl | 39 ++++++++++++++ .../modules/test_pg_dump/test_pg_dump--1.0.sql | 9 ++++ 3 files changed, 70 insertions(+), 39 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix pg_dump for GRANT OPTION among initial privileges. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix pg_dump for GRANT OPTION among initial privileges. The context is an object that no longer bears some aclitem that it bore initially. (A user issued REVOKE or GRANT statements upon the object.) pg_dump is forming SQL to reproduce the object ACL. Since initdb creates no ACL bearing GRANT OPTION, reaching this bug requires an extension where the creation script establishes such an ACL. No PGXN extension does that. If an installation did reach the bug, pg_dump would have omitted a semicolon, causing a REVOKE and the next SQL statement to fail. Separately, since the affected code exists to eliminate an entire aclitem, it wants plain REVOKE, not REVOKE GRANT OPTION FOR. Back-patch to 9.6, where commit 23f34fa4ba358671adab16773e79c17c92cbc870 first appeared. Discussion: https://postgr.es/m/20210109102423.GA160022@rfd.leadboat.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a0d31b1c94143c12c98da85652aeb5ff240489c7 Modified Files -------------- src/bin/pg_dump/dumputils.c | 61 ++++++++-------------- src/test/modules/test_pg_dump/t/001_base.pl | 39 ++++++++++++++ .../modules/test_pg_dump/test_pg_dump--1.0.sql | 9 ++++ 3 files changed, 70 insertions(+), 39 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix pg_dump for GRANT OPTION among initial privileges. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix pg_dump for GRANT OPTION among initial privileges. The context is an object that no longer bears some aclitem that it bore initially. (A user issued REVOKE or GRANT statements upon the object.) pg_dump is forming SQL to reproduce the object ACL. Since initdb creates no ACL bearing GRANT OPTION, reaching this bug requires an extension where the creation script establishes such an ACL. No PGXN extension does that. If an installation did reach the bug, pg_dump would have omitted a semicolon, causing a REVOKE and the next SQL statement to fail. Separately, since the affected code exists to eliminate an entire aclitem, it wants plain REVOKE, not REVOKE GRANT OPTION FOR. Back-patch to 9.6, where commit 23f34fa4ba358671adab16773e79c17c92cbc870 first appeared. Discussion: https://postgr.es/m/20210109102423.GA160022@rfd.leadboat.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c6ff165f99a7ecc4420b513ab7ea3c2dd72927a3 Modified Files -------------- src/bin/pg_dump/dumputils.c | 61 ++++++++-------------- src/test/modules/test_pg_dump/t/001_base.pl | 39 ++++++++++++++ .../modules/test_pg_dump/test_pg_dump--1.0.sql | 9 ++++ 3 files changed, 70 insertions(+), 39 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix pg_dump for GRANT OPTION among initial privileges. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix pg_dump for GRANT OPTION among initial privileges. The context is an object that no longer bears some aclitem that it bore initially. (A user issued REVOKE or GRANT statements upon the object.) pg_dump is forming SQL to reproduce the object ACL. Since initdb creates no ACL bearing GRANT OPTION, reaching this bug requires an extension where the creation script establishes such an ACL. No PGXN extension does that. If an installation did reach the bug, pg_dump would have omitted a semicolon, causing a REVOKE and the next SQL statement to fail. Separately, since the affected code exists to eliminate an entire aclitem, it wants plain REVOKE, not REVOKE GRANT OPTION FOR. Back-patch to 9.6, where commit 23f34fa4ba358671adab16773e79c17c92cbc870 first appeared. Discussion: https://postgr.es/m/20210109102423.GA160022@rfd.leadboat.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b933c9c0ba8787c2e31521cc94be4acdd1f47d57 Modified Files -------------- src/bin/pg_dump/dumputils.c | 61 ++++++++-------------- src/test/modules/test_pg_dump/t/001_base.pl | 51 ++++++++++++++++++ .../modules/test_pg_dump/test_pg_dump--1.0.sql | 9 ++++ 3 files changed, 82 insertions(+), 39 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Fix pg_dump for GRANT OPTION among initial privileges. @ 2021-01-16 20:22 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 6+ messages in thread From: Noah Misch @ 2021-01-16 20:22 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix pg_dump for GRANT OPTION among initial privileges. The context is an object that no longer bears some aclitem that it bore initially. (A user issued REVOKE or GRANT statements upon the object.) pg_dump is forming SQL to reproduce the object ACL. Since initdb creates no ACL bearing GRANT OPTION, reaching this bug requires an extension where the creation script establishes such an ACL. No PGXN extension does that. If an installation did reach the bug, pg_dump would have omitted a semicolon, causing a REVOKE and the next SQL statement to fail. Separately, since the affected code exists to eliminate an entire aclitem, it wants plain REVOKE, not REVOKE GRANT OPTION FOR. Back-patch to 9.6, where commit 23f34fa4ba358671adab16773e79c17c92cbc870 first appeared. Discussion: https://postgr.es/m/20210109102423.GA160022@rfd.leadboat.com Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ad2b7c9bb061e85d1afe0debb916e00ca8cf8d5b Modified Files -------------- src/bin/pg_dump/dumputils.c | 65 ++++++++-------------- src/test/modules/test_pg_dump/t/001_base.pl | 51 +++++++++++++++++ .../modules/test_pg_dump/test_pg_dump--1.0.sql | 9 +++ 3 files changed, 84 insertions(+), 41 deletions(-) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2021-01-16 20:22 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-01-16 20:22 pgsql: Fix pg_dump for GRANT OPTION among initial privileges. Noah Misch <noah@leadboat.com> 2021-01-16 20:22 pgsql: Fix pg_dump for GRANT OPTION among initial privileges. Noah Misch <noah@leadboat.com> 2021-01-16 20:22 pgsql: Fix pg_dump for GRANT OPTION among initial privileges. Noah Misch <noah@leadboat.com> 2021-01-16 20:22 pgsql: Fix pg_dump for GRANT OPTION among initial privileges. Noah Misch <noah@leadboat.com> 2021-01-16 20:22 pgsql: Fix pg_dump for GRANT OPTION among initial privileges. Noah Misch <noah@leadboat.com> 2021-01-16 20:22 pgsql: Fix pg_dump for GRANT OPTION among initial privileges. Noah Misch <noah@leadboat.com>
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