]> granicus.if.org Git - postgresql/commit
Support explicit placement of the temporary-table schema within search_path.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Apr 2007 02:38:59 +0000 (02:38 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Apr 2007 02:38:59 +0000 (02:38 +0000)
commita796aac46fd8e93ac5d5b328eb48460507d6a645
tree19ddfdd50cb1d293a87545ff2986c6f9215f8930
parentf085ee088e244743024f9866e948236124f6c97f
Support explicit placement of the temporary-table schema within search_path.
This is needed to allow a security-definer function to set a truly secure
value of search_path.  Without it, a malicious user can use temporary objects
to execute code with the privileges of the security-definer function.  Even
pushing the temp schema to the back of the search path is not quite good
enough, because a function or operator at the back of the path might still
capture control from one nearer the front due to having a more exact datatype
match.  Hence, disable searching the temp schema altogether for functions and
operators.

Security: CVE-2007-2138
doc/src/sgml/ref/create_function.sgml
doc/src/sgml/release.sgml
doc/src/sgml/runtime.sgml
src/backend/catalog/namespace.c
src/test/regress/expected/temp.out
src/test/regress/sql/temp.sql