pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Prevent non-superusers from reading pg_backend_memory_contexts,
Date: Wed, 26 Aug 2020 01:53:15 +0000
Message-ID: <E1kAkcl-0007cb-A2@gemulon.postgresql.org> (raw)

Prevent non-superusers from reading pg_backend_memory_contexts, by default.

pg_backend_memory_contexts view contains some internal information of
memory contexts. Since exposing them to any users by default may cause
security issue, this commit allows only superusers to read this view,
by default, like we do for pg_shmem_allocations view.

Bump catalog version.

Author: Atsushi Torikoshi
Reviewed-by: Michael Paquier, Fujii Masao
Discussion: https://postgr.es/m/1414992.1597849297@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/29dd6d8bc631eebc3e50493c115f7a215f03bd0a

Modified Files
--------------
doc/src/sgml/catalogs.sgml           | 4 ++++
src/backend/catalog/system_views.sql | 3 +++
src/include/catalog/catversion.h     | 2 +-
3 files changed, 8 insertions(+), 1 deletion(-)



Message-ID: <E1kAkcl-0007cb-A2@gemulon.postgresql.org>
Permalink:  ../E1kAkcl-0007cb-A2@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kAkcl-0007cb-A2@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: fujii@postgresql.org
  Subject: Re: pgsql: Prevent non-superusers from reading pg_backend_memory_contexts,
  In-Reply-To: <E1kAkcl-0007cb-A2@gemulon.postgresql.org>
  References: <E1kAkcl-0007cb-A2@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