Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets
Date: 2001-08-18 14:52:00
Message-ID: Pine.LNX.4.30.0108181644180.677-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2001-08-18 15:04:39 Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets
Previous Message Peter Eisentraut 2001-08-18 14:34:39 Re: encoding names