diff options
author | Dean Rasheed <dean.a.rasheed@gmail.com> | 2019-04-02 08:13:59 +0100 |
---|---|---|
committer | Dean Rasheed <dean.a.rasheed@gmail.com> | 2019-04-02 08:13:59 +0100 |
commit | e2d28c0f404713f564dc2250646551c75172f17b (patch) | |
tree | 8eef6e884d4c4dfaab0120e0be1e4d916d4e8731 /src/backend/access/gist/gistxlog.c | |
parent | 280e5f14056bf34a0f52320f659fb93acfda0876 (diff) | |
download | postgresql-e2d28c0f404713f564dc2250646551c75172f17b.tar.gz |
Perform RLS subquery checks as the right user when going via a view.
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
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions