socket-wrapper fd-passing

Stefan Metzmacher metze at
Sat Jan 30 12:34:25 UTC 2021

Hi Anoop,

> There are two main items left to do:
> 1. cleanup the socket_wrapper.c:
>   - struct swrap_unix_scm_rights => adding a uint64 magic
>     (if possible the magic should be derived from the
>     definition of swrap_unix_scm_rights_payload,
>     see profile_setup() in source3/profile/profile.c
>     where we do something similar.
>   - we need to remove some #if 0 code

I changed it a bit differently and have merge request ready for review here:

I improved your test a bit in order to let recvmsg() block reliable
until the incoming message arrived (on FreeBSD).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the samba-technical mailing list