From owner-freebsd-current@FreeBSD.ORG Fri Mar 16 12:19:36 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9C09A16A402; Fri, 16 Mar 2007 12:19:36 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.freebsd.org (Postfix) with ESMTP id 2541C13C448; Fri, 16 Mar 2007 12:19:35 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost.int.ru [127.0.0.1] (may be forged)) by mp2.macomnet.net (8.13.7/8.13.8) with ESMTP id l2GBvQIS091907; Fri, 16 Mar 2007 14:57:26 +0300 (MSK) (envelope-from maxim@macomnet.ru) Date: Fri, 16 Mar 2007 14:57:22 +0300 (MSK) From: Maxim Konovalov To: Harti Brandt In-Reply-To: <20070316104749.J88087@knop-beagle.kn.op.dlr.de> Message-ID: <20070316145524.T40420@mp2.macomnet.net> References: <20070316104749.J88087@knop-beagle.kn.op.dlr.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-current@freebsd.org Subject: Re: LOCAL_CREDS socket option X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2007 12:19:36 -0000 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