Date: Mon, 26 May 2008 20:47:55 +0200 From: Kris Kennaway <kris@FreeBSD.org> To: Steven Hartland <killing@multiplay.co.uk> Cc: freebsd-hackers@freebsd.org Subject: Re: Using sendmsg for SCM_CREDS results in EINVAL on PF_INET socket Message-ID: <483B05DB.3000309@FreeBSD.org> In-Reply-To: <BCBAE9EA84D54762AD983B29B2752492@multiplay.co.uk> References: <BCBAE9EA84D54762AD983B29B2752492@multiplay.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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? What would it even mean to send credentials to a remote host over an AF_INET socket? Kris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?483B05DB.3000309>