summaryrefslogtreecommitdiff
path: root/src/include/tcop/utility.h
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-02-17 09:33:31 -0500
committerRobert Haas <rhaas@postgresql.org>2014-02-17 09:33:31 -0500
commit5f173040e324f6c2eebb90d86cf1b0cdb5890f0a (patch)
tree9c3d313acb74c092bc2664b862720f340460bb80 /src/include/tcop/utility.h
parent540b4e5bc85f7e44842493a810b04a84881db20f (diff)
downloadpostgresql-5f173040e324f6c2eebb90d86cf1b0cdb5890f0a.tar.gz
Avoid repeated name lookups during table and index DDL.
If the name lookups come to different conclusions due to concurrent activity, we might perform some parts of the DDL on a different table than other parts. At least in the case of CREATE INDEX, this can be used to cause the permissions checks to be performed against a different table than the index creation, allowing for a privilege escalation attack. This changes the calling convention for DefineIndex, CreateTrigger, transformIndexStmt, transformAlterTableStmt, CheckIndexCompatible (in 9.2 and newer), and AlterTable (in 9.1 and older). In addition, CheckRelationOwnership is removed in 9.2 and newer and the calling convention is changed in older branches. A field has also been added to the Constraint node (FkConstraint in 8.4). Third-party code calling these functions or using the Constraint node will require updating. Report by Andres Freund. Patch by Robert Haas and Andres Freund, reviewed by Tom Lane. Security: CVE-2014-0062
Diffstat (limited to 'src/include/tcop/utility.h')
-rw-r--r--src/include/tcop/utility.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/include/tcop/utility.h b/src/include/tcop/utility.h
index a449bd0a53..3ecf931bea 100644
--- a/src/include/tcop/utility.h
+++ b/src/include/tcop/utility.h
@@ -49,6 +49,4 @@ extern LogStmtLevel GetCommandLogLevel(Node *parsetree);
extern bool CommandIsReadOnly(Node *parsetree);
-extern void CheckRelationOwnership(RangeVar *rel, bool noCatalogs);
-
#endif /* UTILITY_H */