Re: [PATCH] Add peer authentication TAP test

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [PATCH] Add peer authentication TAP test
Дата
Msg-id YzP2vBC1uBGEDRM6@paquier.xyz
обсуждение исходный текст
Ответ на Re: [PATCH] Add peer authentication TAP test  ("Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>)
Ответы Re: [PATCH] Add peer authentication TAP test  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Wed, Sep 28, 2022 at 09:12:57AM +0200, Drouvot, Bertrand wrote:
> Maybe the variable name should be system_user instead or should we use
> another way to get the "SYSTEM_USER" to be used in the map?

Hmm, indeed.  It would be more reliable to rely on the contents
returned by getpeereid()/getpwuid() after one successful peer
connection, then use it in the map.  I was wondering whether using
stuff like getpwuid() in the perl script itself would be better, but
it sounds less of a headache in terms of portability to just rely on
authn_id via SYSTEM_USER to generate the contents of the correct map.
--
Michael

Вложения

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

Предыдущее
От: "Drouvot, Bertrand"
Дата:
Сообщение: Re: [PATCH] Add peer authentication TAP test
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [small patch] Change datatype of ParallelMessagePending from "volatile bool" to "volatile sig_atomic_t"