From owner-freebsd-hackers@FreeBSD.ORG Mon May 26 18:34:13 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 776EC1065753 for ; Mon, 26 May 2008 18:34:12 +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 62AAA8FC0A for ; Mon, 26 May 2008 18:34:11 +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 m4QI2JUQ004488; Mon, 26 May 2008 22:02:20 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Mon, 26 May 2008 22:02:19 +0400 (MSD) From: Maxim Konovalov To: Steven Hartland In-Reply-To: Message-ID: <20080526220157.J35550@mp2.macomnet.net> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-hackers@freebsd.org Subject: Re: Using sendmsg for SCM_CREDS results in EINVAL on PF_INET socket X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2008 18:34:13 -0000 On Sun, 18 May 2008, 20:56+0100, Steven Hartland wrote: > sendmsg is not documented as ever returning EINVAL but yet when > using the following code to send credentials to a remote host > results in EINVAL from sendmsg. > > I suspect that SCM_CREDS is only valid for PF_LOCAL / PF_UNIX > sockets and not PF_INET sockets and hence the code in dbus > is actually invalid. > > Can anyone confirm this is the case or not? > [...] confirmed :-) -- Maxim Konovalov