1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source3
Pavel Filipenský 6539f1e4cd s3:winbindd: Change the TALLOC_CTX to fix the tevent call depth tracking
Call depth is not working for winbindd_list_users_send as expected,
it is visible in the flow traces:

  -> process_request_send
      -> winbindd_list_users_send
  -> wb_query_user_list_send

It should look like:

  -> process_request_send
      -> winbindd_list_users_send
          -> wb_query_user_list_send

Tevent call depth tracking internal implementation relies on the fact
that the talloc memory context has type  "struct tevent_req".
Then it can obtain the depth from the parent and increment it by one.

The implementation of winbindd_list_users_send() is passing to
wb_query_user_list_send() context of type
"struct winbindd_list_users_state", and from there the parent
"struct tevent_req" cannot be identified.

So we will pass as TALLOC_CTX 'state' instead of 'state->domains'.
After the call, we can reparent back.

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Thu Jul 20 10:38:19 UTC 2023 on atb-devel-224
2023-07-20 10:38:19 +00:00
..
auth s3:auth: Use new debug macros for logging 2023-07-05 06:34:32 +00:00
build
client s4:client: Fix code spelling 2023-07-05 06:34:32 +00:00
exports
groupdb
include s3:include: Fix code spelling 2023-07-13 05:41:36 +00:00
intl
lib s3:lib: Fix code spelling 2023-07-13 05:41:36 +00:00
libads s3:libads: Fix code spelling 2023-07-13 05:41:36 +00:00
libgpo/gpext
libnet s3-net: no secrets access required when processing a ODJ provisioning 2023-07-05 09:23:22 +00:00
librpc s3:librpc: Fix code spelling 2023-07-17 11:46:29 +00:00
libsmb s3:libsmb: Fix code spelling 2023-07-13 06:34:01 +00:00
locale spelling: connnect encrytion exisit expection explicit invalide missmatch paramater paramter partion privilige relase reponse seperate unkown verson authencication progagated 2022-06-10 18:12:33 +00:00
locking s3:locking: Fix code spelling 2023-07-17 11:46:29 +00:00
modules s3:modules: Fix code spelling 2023-07-17 11:46:29 +00:00
nmbd s3:nmbd: Fix code spelling 2023-07-17 12:41:21 +00:00
param s3:param: Fix code spelling 2023-07-19 09:58:37 +00:00
passdb s3:passdb: Fix code spelling 2023-07-19 09:58:37 +00:00
printing s3:printing: Rename variably to dummy to make codespell happy 2023-07-19 09:58:37 +00:00
profile profiling: Factor out functions to read smbprofile.tdb 2023-06-16 16:14:30 +00:00
registry s3:registry: Fix code spelling 2023-07-19 09:58:37 +00:00
rpc_client s3:rpc_client: Fix code spelling 2023-07-19 09:58:37 +00:00
rpc_server s3:rpc_server: Fix code spelling 2023-07-19 09:58:37 +00:00
rpcclient librpc/ndr: Unimplement DRSUAPI_COMPRESSION_TYPE_XPRESS and rename 2023-03-31 01:48:30 +00:00
script s3:script: Fix code spelling 2023-07-19 09:58:37 +00:00
selftest s3:selftest: Fix code spelling 2023-07-19 09:58:37 +00:00
services s3:services: Disable rcinit-based service control code 2021-12-10 14:02:30 +00:00
smbd s3:smbd: Fix code spelling 2023-07-19 09:58:37 +00:00
torture s3:torture: Fix code spelling 2023-07-19 09:58:37 +00:00
utils s3:utils: Fix code spelling 2023-07-19 09:58:37 +00:00
web
winbindd s3:winbindd: Change the TALLOC_CTX to fix the tevent call depth tracking 2023-07-20 10:38:19 +00:00
.clang_complete
.dmallocrc
.indent.pro
Doxyfile
mainpage.dox
smbadduser.in
wscript s3:waf: Fix code spelling 2023-07-19 09:58:37 +00:00
wscript_build profiling: Factor out functions to read smbprofile.tdb 2023-06-16 16:14:30 +00:00
wscript_configure_system_ncurses