Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets
Дата
Msg-id
Pine.LNX.4.30.0108181644180.677-100000@peter.localdomain
Ответ на
Список
Дерево обсуждения
Patch: use SCM_CREDS authentication over PF_LOCAL sockets wollman@LCS.MIT.EDU
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets "Marc G. Fournier" <scrappy@hub.org>
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets Peter Eisentraut <peter_e@gmx.net>
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets Bruce Momjian <pgman@candle.pha.pa.us>
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets Bruce Momjian <pgman@candle.pha.pa.us>
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets Bruce Momjian <pgman@candle.pha.pa.us>
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets Bruce Momjian <pgman@candle.pha.pa.us>
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets Bruce Momjian <pgman@candle.pha.pa.us>
Bruce Momjian writes:

> OK, here is an even better version.  It handles the lack of alignment in
> the the structure passing.  This works on BSD/OS and should work on
> FreeBSD too.

Since this patch overwrites the previous SO_PEERCRED patch I assume you
want it to work on Linux, too.  On Linux SCM_CREDS is called
SCM_CREDENTIALS.  There's no sys/ucred.h (use sys/socket.h instead), and
there's no fc_uid, though I don't know what that does.  The invocation
changes to StrNCpy look suspicious; see the comment at StrNCpy in c.h.  In
one place you include errno.h twice.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter

В списке pgsql-patches по дате отправления
От: Peter Eisentraut
Дата:
Сообщение: Re: encoding names
От: Tom Lane
Дата:
FAQ