From owner-freebsd-net@FreeBSD.ORG Thu Aug 29 21:35:55 2013 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0DE67C52 for ; Thu, 29 Aug 2013 21:35:55 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id D56D02B5B for ; Thu, 29 Aug 2013 21:35:54 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r7TLZswN044374; Thu, 29 Aug 2013 14:35:54 -0700 (PDT) (envelope-from yuri@rawbw.com) Message-ID: <521FBEB9.20403@rawbw.com> Date: Thu, 29 Aug 2013 14:35:53 -0700 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130822 Thunderbird/17.0.8 MIME-Version: 1.0 To: Alfred Perlstein Subject: Re: LOCAL_CREDS are broken ? References: <521F9789.5000903@rawbw.com> <521FBDA1.4060106@mu.org> In-Reply-To: <521FBDA1.4060106@mu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: net@FreeBSD.org X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Aug 2013 21:35:55 -0000 On 08/29/2013 14:31, Alfred Perlstein wrote: > Looks like SOCK_SEQPACKET doesn't support LOCAL_CREDS because its > protosw doesn't contain the entry for: > .pr_ctloutput = &uipc_ctloutput, > > Have a look at src/sys/kern/uipc_usrreq.c at around lines 280-332: But SOCK_DGRAM produces the same result. Sorry, I forgot to mention in my OP. I found this case by troubleshooting the linux code that does socketpair(AF_LOCAL, SOCK_DGRAM, 0,...) and later sets the equivalent of LOCAL_CREDS and this fails. Yuri