Re: Please test peer (socket ident) auth on *BSD

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Please test peer (socket ident) auth on *BSD
Дата
Msg-id 1306870688.20912.2.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: Please test peer (socket ident) auth on *BSD  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Please test peer (socket ident) auth on *BSD
Список pgsql-hackers
On tis, 2011-05-31 at 11:59 -0400, Tom Lane wrote:
> However, FreeBSD does have, and Debian/kFreeBSD does expose,
> getsockopt(LOCAL_PEERCRED), which turns out to be functionally
> equivalent to SO_PEERCRED: in particular, you can just call it and get
> the answer without having to fool with getting the far end to send a
> message.  This is not only a whole lot cleaner than what we have, but
> also could be used to implement libpq's requirepeer option, which is
> currently unsupported on such platforms.
> 
> So what I'm now thinking is we should rip out the control-message
> implementation altogether, and instead use LOCAL_PEERCRED.  This is
> probably not something to back-patch, but it would make things a lot
> cleaner going forward.

Oh yes, no point in having complicated code that doesn't get exercised.



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

Предыдущее
От: Florian Pflug
Дата:
Сообщение: Re: [PATCH] Bug in XPATH() if expression returns a scalar value
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: creating CHECK constraints as NOT VALID