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