From: Stephen Frost <sfrost@snowman.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove explicit superuser checks in favor of ACLs
Date: Fri, 06 Apr 2018 18:47:38 +0000
Message-ID: <E1f4WOg-0007jG-Gz@gemulon.postgresql.org> (raw)
Remove explicit superuser checks in favor of ACLs
This removes the explicit superuser checks in the various file-access
functions in the backend, specifically pg_ls_dir(), pg_read_file(),
pg_read_binary_file(), and pg_stat_file(). Instead, EXECUTE is REVOKE'd
from public for these, meaning that only a superuser is able to run them
by default, but access to them can be GRANT'd to other roles.
Reviewed-By: Michael Paquier
Discussion: https://postgr.es/m/20171231191939.GR2416%40tamriel.snowman.net
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/e79350fef2917522571add750e3e21af293b50fe
Modified Files
--------------
src/backend/catalog/system_views.sql | 14 ++++++++++++++
src/backend/utils/adt/genfile.c | 20 --------------------
2 files changed, 14 insertions(+), 20 deletions(-)
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: sfrost@snowman.net
Subject: Re: pgsql: Remove explicit superuser checks in favor of ACLs
In-Reply-To: <E1f4WOg-0007jG-Gz@gemulon.postgresql.org>
References: <E1f4WOg-0007jG-Gz@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