Using sendmsg for SCM_CREDS results in EINVAL on PF_INET socket

Maxim Konovalov maxim at macomnet.ru
Mon May 26 18:34:13 UTC 2008


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


More information about the freebsd-hackers mailing list