socket-wrapper fd-passing

Stefan Metzmacher metze at samba.org
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:
https://gitlab.com/cwrap/socket_wrapper/-/merge_requests/14

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

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20210130/1dde6128/signature.sig>


More information about the samba-technical mailing list