]> git.ipfire.org Git - thirdparty/samba.git/commit
CVE-2020-25717 winbindd: add generic wb_parent_idmap_setup_send/recv() helpers
authorStefan Metzmacher <metze@samba.org>
Fri, 11 Sep 2020 10:16:00 +0000 (12:16 +0200)
committerJule Anger <janger@samba.org>
Mon, 8 Nov 2021 09:52:09 +0000 (10:52 +0100)
commitf3957ca5ce206e1224874e6495780b5130d6de0c
tree5655dc2f75f75454e8ef8971a45a3ac1f47393dd
parentaebe4cec6c55ee180cda345fda0921fb9cc3818f
CVE-2020-25717 winbindd: add generic wb_parent_idmap_setup_send/recv() helpers

This is more or less a copy of wb_xids2sids_init_dom_maps_send/recv,
but it's more generic and doesn't imply global state.

It also closes a initialization race by using a tevent_queue to
serialize the calls.

In the next commits we'll replace wb_xids2sids_init_dom_maps_send/recv.

We'll also use the new function in the wb_sids2xids code.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14539

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14556

(cherry picked from commit 209e81a2ea8c972ee57e2f0c9579da843c0e2ac7)
source3/winbindd/winbindd.h
source3/winbindd/winbindd_idmap.c
source3/winbindd/winbindd_proto.h