Re: CREATEROLE users vs. role properties

Поиск
Список
Период
Сортировка
От tushar
Тема Re: CREATEROLE users vs. role properties
Дата
Msg-id 0d55df3d-da0e-7960-8bc7-a43355a81c6f@enterprisedb.com
обсуждение исходный текст
Ответ на Re: CREATEROLE users vs. role properties  (tushar <tushar.ahuja@enterprisedb.com>)
Ответы Re: CREATEROLE users vs. role properties  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 1/19/23 3:05 PM, tushar wrote:
> which was working previously without patch. 
My bad, I was testing against PG v15 but this issue is not
reproducible on master (without patch).

As you mentioned- "This implements the standard idea that you can't give 
permissions
you don't have (but you can give the ones you do have)" but here the 
role is having
createrole  privilege that he cannot pass on to another user? Is this 
expected?

postgres=# create role fff with createrole;
CREATE ROLE
postgres=# create role xxx;
CREATE ROLE
postgres=# set role fff;
SET
postgres=> alter role xxx with createrole;
ERROR:  permission denied
postgres=>

-- 
regards,tushar
EnterpriseDB  https://www.enterprisedb.com/
The Enterprise PostgreSQL Company




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

Предыдущее
От: vignesh C
Дата:
Сообщение: Re: TAP output format in pg_regress
Следующее
От: Amit Langote
Дата:
Сообщение: Re: ExecRTCheckPerms() and many prunable partitions (checkAsUser)