pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Remove the SECURITY_ROW_LEVEL_DISABLED security context bit. 2+ messages / 1 participants [nested] [flat]
* pgsql: Remove the SECURITY_ROW_LEVEL_DISABLED security context bit. @ 2015-09-21 01:00 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 2+ messages in thread From: Noah Misch @ 2015-09-21 01:00 UTC (permalink / raw) To: pgsql-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 ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Remove the SECURITY_ROW_LEVEL_DISABLED security context bit. @ 2015-09-21 01:00 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 2+ messages in thread From: Noah Misch @ 2015-09-21 01:00 UTC (permalink / raw) To: pgsql-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 ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/bbdb9dfbc3c722b4c811c5cbfa03ce79b7b74824 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2015-09-21 01:00 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-09-21 01:00 pgsql: Remove the SECURITY_ROW_LEVEL_DISABLED security context bit. Noah Misch <noah@leadboat.com> 2015-09-21 01:00 pgsql: Remove the SECURITY_ROW_LEVEL_DISABLED security context bit. Noah Misch <noah@leadboat.com>
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