Date: Fri, 16 Mar 2007 14:57:22 +0300 (MSK) From: Maxim Konovalov <maxim@macomnet.ru> To: Harti Brandt <harti@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: LOCAL_CREDS socket option Message-ID: <20070316145524.T40420@mp2.macomnet.net> In-Reply-To: <20070316104749.J88087@knop-beagle.kn.op.dlr.de> References: <20070316104749.J88087@knop-beagle.kn.op.dlr.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 16 Mar 2007, 10:51+0100, Harti Brandt wrote:
>
> Hi,
>
> is there any specific reason that we don't support the LOCAL_CREDS
> option for SOCK_DGRAM sockets in the local domain? It's documented
> in unix(4) for a long time and it looks like it is supported, for
> example, in NetBSD.
IIRC it is supported.
>From tools/regression/sockets/unix_cmsg/README:
For SOCK_DGRAM sockets:
----------------------
[...]
3: Sending cmsgcred, receiving sockcred
Server creates datagram socket and set socket option LOCAL_CREDS
for it. Client sends one message with data and control message with
SOCK_CREDS type to Server. Server should receive one message with
data and control message with SCM_CREDS type followed by struct
sockcred{} and this structure should contain correct information.
--
Maxim Konovalov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070316145524.T40420>
