Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2008 21:02:14 +0100
From:      "Steven Hartland" <killing@multiplay.co.uk>
To:        "Matthew Dillon" <dillon@apollo.backplane.com>, "Kris Kennaway" <kris@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Using sendmsg for SCM_CREDS results in EINVAL on PF_INET socket
Message-ID:  <7EB9398C5B46415B96D2C20A2E261E13@multiplay.co.uk>
References:  <BCBAE9EA84D54762AD983B29B2752492@multiplay.co.uk><483B05DB.3000309@FreeBSD.org> <200805261936.m4QJaS7Q074045@apollo.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- 
From: "Matthew Dillon" <dillon@apollo.backplane.com>
>>>
>>>[...]
>>>confirmed :-)
>>>
>:> 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
> 
>    The only way to do it is to do a connect-back to a secure port.  In
>    otherwords, to use the identd protocol.
> 
>    Control messages like SCM_CREDS (and descriptor passing for that matter)
>    only work over local protocol sockets.

Thank you for the confirmation guys. I'll look to create a patch
I can submit to the dbus project to disable the use of SCM_CREDS
when using PF_UNIX sockets.

    Regards
    Steve

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster@multiplay.co.uk.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7EB9398C5B46415B96D2C20A2E261E13>