Using sendmsg for SCM_CREDS results in EINVAL on PF_INET socket

Kris Kennaway kris at FreeBSD.org
Mon May 26 18:47:57 UTC 2008


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



More information about the freebsd-hackers mailing list