From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: Make BYPASSRLS behave like superuser RLS bypass.
Date: Sun, 04 Oct 2015 00:24:54 +0000
Message-ID: <E1ZiX6k-0003XC-Px@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Make BYPASSRLS behave like superuser RLS bypass.
Specifically, make its effect independent from the row_security GUC, and
make it affect permission checks pertinent to views the BYPASSRLS role
owns. The row_security GUC thereby ceases to change successful-query
behavior; it can only make a query fail with an error. Back-patch to
9.5, where BYPASSRLS was introduced.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/3cb0a7e75aaa9a7826c769068970ce2200e61023
Modified Files
--------------
doc/src/sgml/catalogs.sgml | 6 ++---
doc/src/sgml/config.sgml | 25 +++++++-----------
doc/src/sgml/ddl.sgml | 19 +++++---------
doc/src/sgml/ref/create_role.sgml | 9 +++----
src/backend/utils/misc/rls.c | 39 +++++++++--------------------
src/include/catalog/pg_authid.h | 2 +-
src/test/regress/expected/rowsecurity.out | 14 ++++++-----
src/test/regress/sql/rowsecurity.sql | 6 ++---
8 files changed, 44 insertions(+), 76 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: Make BYPASSRLS behave like superuser RLS bypass.
In-Reply-To: <E1ZiX6k-0003XC-Px@gemulon.postgresql.org>
References: <E1ZiX6k-0003XC-Px@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