Get rid of last few unadorned 'permission denied' messages.
This commit is contained in:
parent
4b833d080b
commit
33875872fd
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_conversion.c,v 1.9 2002/12/04 05:18:32 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_conversion.c,v 1.10 2003/01/27 00:45:19 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -143,7 +143,7 @@ ConversionDrop(Oid conversionOid, DropBehavior behavior)
|
|||||||
|
|
||||||
if (!superuser() &&
|
if (!superuser() &&
|
||||||
((Form_pg_conversion) GETSTRUCT(tuple))->conowner != GetUserId())
|
((Form_pg_conversion) GETSTRUCT(tuple))->conowner != GetUserId())
|
||||||
elog(ERROR, "permission denied");
|
elog(ERROR, "DROP CONVERSION: permission denied");
|
||||||
|
|
||||||
ReleaseSysCache(tuple);
|
ReleaseSysCache(tuple);
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.109 2002/12/05 04:04:42 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.110 2003/01/27 00:46:41 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -532,7 +532,7 @@ AlterDatabaseSet(AlterDatabaseSetStmt *stmt)
|
|||||||
|
|
||||||
if (!(superuser()
|
if (!(superuser()
|
||||||
|| ((Form_pg_database) GETSTRUCT(tuple))->datdba == GetUserId()))
|
|| ((Form_pg_database) GETSTRUCT(tuple))->datdba == GetUserId()))
|
||||||
elog(ERROR, "permission denied");
|
elog(ERROR, "ALTER DATABASE SET: permission denied");
|
||||||
|
|
||||||
MemSet(repl_repl, ' ', sizeof(repl_repl));
|
MemSet(repl_repl, ' ', sizeof(repl_repl));
|
||||||
repl_repl[Anum_pg_database_datconfig - 1] = 'r';
|
repl_repl[Anum_pg_database_datconfig - 1] = 'r';
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.115 2002/12/05 04:04:42 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/user.c,v 1.116 2003/01/27 00:47:37 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -908,7 +908,7 @@ AlterUserSet(AlterUserSetStmt *stmt)
|
|||||||
|
|
||||||
if (!(superuser()
|
if (!(superuser()
|
||||||
|| ((Form_pg_shadow) GETSTRUCT(oldtuple))->usesysid == GetUserId()))
|
|| ((Form_pg_shadow) GETSTRUCT(oldtuple))->usesysid == GetUserId()))
|
||||||
elog(ERROR, "permission denied");
|
elog(ERROR, "ALTER USER SET: permission denied");
|
||||||
|
|
||||||
for (i = 0; i < Natts_pg_shadow; i++)
|
for (i = 0; i < Natts_pg_shadow; i++)
|
||||||
repl_repl[i] = ' ';
|
repl_repl[i] = ' ';
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.189 2003/01/10 22:03:28 petere Exp $
|
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.190 2003/01/27 00:48:28 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -973,7 +973,7 @@ ProcessUtility(Node *parsetree,
|
|||||||
|
|
||||||
case T_CheckPointStmt:
|
case T_CheckPointStmt:
|
||||||
if (!superuser())
|
if (!superuser())
|
||||||
elog(ERROR, "permission denied");
|
elog(ERROR, "CHECKPOINT: permission denied");
|
||||||
CreateCheckPoint(false, false);
|
CreateCheckPoint(false, false);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.99 2003/01/25 05:19:46 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.100 2003/01/27 00:51:06 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -616,7 +616,7 @@ SetSessionAuthorization(AclId userid)
|
|||||||
|
|
||||||
if (userid != AuthenticatedUserId &&
|
if (userid != AuthenticatedUserId &&
|
||||||
!AuthenticatedUserIsSuperuser)
|
!AuthenticatedUserIsSuperuser)
|
||||||
elog(ERROR, "permission denied");
|
elog(ERROR, "SET SESSION AUTHORIZATION: permission denied");
|
||||||
|
|
||||||
SetSessionUserId(userid);
|
SetSessionUserId(userid);
|
||||||
SetUserId(userid);
|
SetUserId(userid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user