Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitae5b7a0

Browse files
committed
Disallow LOAD to non-superusers. Per report from John Heasman.
1 parent66bb44c commitae5b7a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/backend/tcop/utility.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.125.2.2 2002/09/30 19:55:08 tgl Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.125.2.3 2005/01/24 17:46:58 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -640,6 +640,8 @@ ProcessUtility(Node *parsetree,
640640
{
641641
LoadStmt*stmt= (LoadStmt*)parsetree;
642642

643+
if (!superuser())
644+
elog(ERROR,"permission denied");
643645
closeAllVfds();/* probably not necessary... */
644646
load_file(stmt->filename);
645647
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp