From: Tom Lane <tgl@sss.pgh.pa.us>
To: Wolfgang Walther <walther@technowledgy.de>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: User with BYPASSRLS privilege can't change password
Date: Tue, 03 Nov 2020 13:19:01 -0500
Message-ID: <958492.1604427541@sss.pgh.pa.us> (raw)
In-Reply-To: <3e771893-1ed1-97e7-6c4a-7b0d00992103@technowledgy.de>
References: <a5548a9f-89ee-3167-129d-162b5985fcf8@technowledgy.de>
<923005.1604420579@sss.pgh.pa.us>
<956994.1604425451@sss.pgh.pa.us>
<3e771893-1ed1-97e7-6c4a-7b0d00992103@technowledgy.de>
Wolfgang Walther <walther@technowledgy.de> writes:
> This is because the "must be superuser to alter replication users"
> condition only triggers when the altered role already has isrepliaction,
> so isreplication could very well be >= 0 here.
How do you figure that? This is in an "else" path after
else if (authform->rolreplication || isreplication >= 0)
so AFAICS it's impossible to get there. If it isn't impossible,
we have a much bigger hole with respect to issuper.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, walther@technowledgy.de, sfrost@snowman.net, pgsql-bugs@lists.postgresql.org
Subject: Re: User with BYPASSRLS privilege can't change password
In-Reply-To: <958492.1604427541@sss.pgh.pa.us>
* 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