aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistproc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-09-03 22:08:34 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-09-03 22:08:34 +0000
commit5f03ab8801e1bd326146a29a4aea4241ed5c8f0d (patch)
tree41f87ed4d8a828121d41cf9704015441f61f9700 /src/backend/access/gist/gistproc.c
parent342dd034b960a6974dc7af5a1f9770b31de8c812 (diff)
downloadpostgresql-5f03ab8801e1bd326146a29a4aea4241ed5c8f0d.tar.gz
postgresql-5f03ab8801e1bd326146a29a4aea4241ed5c8f0d.zip
Disallow RESET ROLE and RESET SESSION AUTHORIZATION inside security-definer
functions. This extends the previous patch that forbade SETting these variables inside security-definer functions. RESET is equally a security hole, since it would allow regaining privileges of the caller; furthermore it can trigger Assert failures and perhaps other internal errors, since the code is not expecting these variables to change in such contexts. The previous patch did not cover this case because assign hooks don't really have enough information, so move the responsibility for preventing this into guc.c. Problem discovered by Heikki Linnakangas. Security: no CVE assigned yet, extends CVE-2007-6600
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions