From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: Remove the SECURITY_ROW_LEVEL_DISABLED security context bit.
Date: Mon, 21 Sep 2015 01:00:46 +0000
Message-ID: <E1ZdpTK-0008F5-DS@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Remove the SECURITY_ROW_LEVEL_DISABLED security context bit.
This commit's parent made superfluous the bit's sole usage. Referential
integrity checks have long run as the subject table's owner, and that
now implies RLS bypass. Safe use of the bit was tricky, requiring
strict control over the SQL expressions evaluating therein. Back-patch
to 9.5, where the bit was introduced.
Based on a patch by Stephen Frost.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/7f11724bd61b420acb2839908d51674e86e52034
Modified Files
--------------
src/backend/utils/adt/ri_triggers.c | 17 +----------------
src/backend/utils/cache/plancache.c | 12 ++----------
src/backend/utils/init/miscinit.c | 14 +-------------
src/backend/utils/misc/rls.c | 7 -------
src/include/miscadmin.h | 2 --
src/include/utils/plancache.h | 1 -
6 files changed, 4 insertions(+), 49 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: Remove the SECURITY_ROW_LEVEL_DISABLED security context bit.
In-Reply-To: <E1ZdpTK-0008F5-DS@gemulon.postgresql.org>
References: <E1ZdpTK-0008F5-DS@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