pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexey Bashtanov <bashtanov@imap.cc>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #9923: "reassign owned" does not change permissions grantor
Date: Wed, 09 Apr 2014 11:35:09 +0400
Message-ID: <5344F82D.8000809@imap.cc> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

after a series of tests and source code reading I realized that
1) the bug is not fixed in last git repository version
2) the bug could be reproduced on types and foreign servers, maybe also 
on foreign data wrappers, triggers, but not on any other objects
3) it does not matter if we assign owner using "reassign owned" or using 
"alter .. owner to ..."
4) there is a problem on revoking such incorrect grants: a workaround is 
to reassign back to old owner, then revoke, than reassign once again
5) to fix the bug we need to perform aclnewowner call in 
AlterForeignServerOwner_internal and AlterTypeOwner (including the 
typtype == TYPTYPE_COMPOSITE case, cause we pass recursing=true to 
ATExecChangeOwner)
and maybe in AlterForeignDataWrapperOwner_internal and 
AlterEventTriggerOwner_internal

sorry I do not provide the exact patch

Regards,
   Alexey Bashtanov


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (10+ messages)  latest in thread

Message-ID: <5344F82D.8000809@imap.cc>
Permalink:  ../5344F82D.8000809@imap.cc/
Also on:    postgresql.org/message-id/5344F82D.8000809@imap.cc

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: bashtanov@imap.cc
  Subject: Re: BUG #9923: "reassign owned" does not change permissions grantor
  In-Reply-To: <5344F82D.8000809@imap.cc>
  References: <5344F82D.8000809@imap.cc>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox