summaryrefslogtreecommitdiffstats
path: root/CompilerChecks.cmake
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2020-06-29 14:10:54 +0200
committerAndreas Schneider <asn@samba.org>2021-02-02 10:23:33 +0100
commitf69ed59e64acac52c1f8b3f8c7a76c5db0bc5877 (patch)
tree8a45d924a42e7e4d13928c3d193754535329460c /CompilerChecks.cmake
parent66a5bef7f9aac4d70124bc8efec72dcd434c660a (diff)
downloadsocket_wrapper-f69ed59e64acac52c1f8b3f8c7a76c5db0bc5877.tar.gz
socket_wrapper-f69ed59e64acac52c1f8b3f8c7a76c5db0bc5877.tar.xz
socket_wrapper-f69ed59e64acac52c1f8b3f8c7a76c5db0bc5877.zip
swrap: add basic support for fd-passing via SCM_RIGHTS
We only allow passing up to 6 fds in a single sendmsg call, in order to keep the logic simple. That's more than enough for Samba's use of fd-passing, there we only pass a single fd and the fd will be closed in the sender on success. It means it's ok to keep the socket_info.io.pck_{snd,rcv} fields per process and the PCAP generation will still work as expected. If these constraints turn out to be a problem for other applications, we need to change to a more complex design and move the socket_info array into a shared memory file and use shared robust mutexes. But for now we just want to support multi-channel testing in Samba. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11899 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'CompilerChecks.cmake')
0 files changed, 0 insertions, 0 deletions