[REVIEW REQUEST] recvmsg in socket_wrapper
asn at samba.org
Mon Jan 20 15:04:25 MST 2014
On Monday 20 January 2014 21:10:48 Stefan Metzmacher wrote:
> Hi Andreas,
> >>> http://git.cryptomilk.org/projects/socket_wrapper.git/log/?h=recvmsg
> >> Thanks! It's nice to see that my work is finally finished:-)
> >> However I don't see were you transfer the 'struct socket_info'
> >> transparently while doing fd-passing. Otherwise it's not possible to
> >> pass socket fds across to another process.
> > Well, the fd-passing is handled in the kernel. I can't fake the kernel
> > internals here :) That's why you can only pass fds on the local system
> > over
> > unix sockets.
> We need be able to test fd-passing of AF_INET/AF_INET6 sockets
> from one process to another process on the same system, while
> passing it over a AF_UNIX socket between the two processes.
> and getpeername() and getsockname() need to return the same
> in both processes.
Here is a start, I'm not sure if this is the nicest way and if it will work
Andreas Schneider GPG-ID: CC014E3D
Samba Team asn at samba.org
More information about the samba-technical