pgsql: Prevent non-superusers from reading pg_backend_memory_contexts,

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Prevent non-superusers from reading pg_backend_memory_contexts,
Date: 2020-08-26 01:53:15
Message-ID: E1kAkcl-0007cb-A2@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2020-08-26 02:59:57 pgsql: Extend the BufFile interface.
Previous Message David Rowley 2020-08-25 22:52:16 pgsql: Fixup some misusages of bms_num_members()