mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-14 09:00:06 +02:00
e2d28c0f40
When accessing a table with RLS via a view, the RLS checks are performed as the view owner. However, the code neglected to propagate that to any subqueries in the RLS checks. Fix that by calling setRuleCheckAsUser() for all RLS policy quals and withCheckOption checks for RTEs with RLS. Back-patch to 9.5 where RLS was added. Per bug #15708 from daurnimator. Discussion: https://postgr.es/m/15708-d65cab2ce9b1717a@postgresql.org |
||
---|---|---|
.. | ||
Makefile | ||
rewriteDefine.c | ||
rewriteHandler.c | ||
rewriteManip.c | ||
rewriteRemove.c | ||
rewriteSupport.c | ||
rowsecurity.c |