Re: User with BYPASSRLS privilege can't change password

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: User with BYPASSRLS privilege can't change password
Дата
Msg-id 958390.1604427443@sss.pgh.pa.us
обсуждение исходный текст
Ответ на User with BYPASSRLS privilege can't change password  (Wolfgang Walther <walther@technowledgy.de>)
Список pgsql-bugs
Stephen Frost <sfrost@snowman.net> writes:
>> @@ -739,7 +741,6 @@ AlterRole(AlterRoleStmt *stmt)
>>             createrole < 0 &&
>>             createdb < 0 &&
>>             canlogin < 0 &&
>> -             isreplication < 0 &&
>>             !dconnlimit &&
>>             !rolemembers &&
>>             !validUntil &&

> This seems like an independent change..?  Not saying it's wrong though.

That test is redundant, since we wouldn't be in this path at all if
isreplication >= 0.  You could alternatively argue that this should
redundantly test all three of issuper, isreplication, and bypassrls;
but testing just one of them is confusing and hence bug-prone.

            regards, tom lane



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Wolfgang Walther
Дата:
Сообщение: Re: User with BYPASSRLS privilege can't change password
Следующее
От: Tom Lane
Дата:
Сообщение: Re: User with BYPASSRLS privilege can't change password