pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: Match pg_user_mappings limits to information_schema.user_mapping
Date: Mon, 08 May 2017 14:26:43 +0000
Message-ID: <E1d7jcZ-00053X-BF@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Match pg_user_mappings limits to information_schema.user_mapping_options.

Both views replace the umoptions field with NULL when the user does not
meet qualifications to see it.  They used different qualifications, and
pg_user_mappings documented qualifications did not match its implemented
qualifications.  Make its documentation and implementation match those
of user_mapping_options.  One might argue for stronger qualifications,
but these have long, documented tenure.  pg_user_mappings has always
exhibited this problem, so back-patch to 9.2 (all supported versions).

Michael Paquier and Feike Steenbergen.  Reviewed by Jeff Janes.
Reported by Andrew Wheelwright.

Security: CVE-2017-7486

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b2423f0fa21b38e9a33782dccad028dca903ea3d

Modified Files
--------------
doc/src/sgml/catalogs.sgml                 |  7 ++--
src/backend/catalog/system_views.sql       | 10 +++---
src/test/regress/expected/foreign_data.out | 54 ++++++++++++++++++++++++++++++
src/test/regress/expected/rules.out        |  4 ++-
src/test/regress/sql/foreign_data.sql      | 15 +++++++++
5 files changed, 82 insertions(+), 8 deletions(-)


-- 
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 (6+ messages)  latest in thread

Message-ID: <E1d7jcZ-00053X-BF@gemulon.postgresql.org>
Permalink:  ../E1d7jcZ-00053X-BF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1d7jcZ-00053X-BF@gemulon.postgresql.org

 · 

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: noah@leadboat.com
  Subject: Re: pgsql: Match pg_user_mappings limits to information_schema.user_mapping
  In-Reply-To: <E1d7jcZ-00053X-BF@gemulon.postgresql.org>
  References: <E1d7jcZ-00053X-BF@gemulon.postgresql.org>

* 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