aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeFunctionscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-05-08 10:12:44 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-05-08 10:12:44 -0400
commitf8d799eda26391bdcd8b493f4eacd77ca70b14f4 (patch)
treecf4d39a2e0b82ba636f891894e99d5eb375b8014 /src/backend/executor/nodeFunctionscan.c
parent01e8182c73b24ec45849e369ad8b3ecd4ed1ba2b (diff)
downloadpostgresql-f8d799eda26391bdcd8b493f4eacd77ca70b14f4.tar.gz
postgresql-f8d799eda26391bdcd8b493f4eacd77ca70b14f4.zip
Handle RLS dependencies in inlined set-returning functions properly.
If an SRF in the FROM clause references a table having row-level security policies, and we inline that SRF into the calling query, we neglected to mark the plan as potentially dependent on which role is executing it. This could lead to later executions in the same session returning or hiding rows that should have been hidden or returned instead. Our thanks to Wolfgang Walther for reporting this problem. Stephen Frost and Tom Lane Security: CVE-2023-2455
Diffstat (limited to 'src/backend/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions