srvsvc: Move brl_get_locks() out of enum_file_fn()
authorVolker Lendecke <vl@samba.org>
Tue, 21 Apr 2020 12:54:25 +0000 (14:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 May 2020 22:06:32 +0000 (22:06 +0000)
commit01db877c7766387984ef32914eca0b2e817c4c6a
tree41b643694db47b7aba31892f5e89a12b25ab78f1
parent8e4583f730abd1a210ec52d5a060dddc4ad850bb
srvsvc: Move brl_get_locks() out of enum_file_fn()

With share_infos.tdb this is a locking order violation:
share_infos.tdb is level 4, brlock.tdb is level 2. Avoid this by first
walking the share_infos.tdb and then fetching all the brlock entries.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=14355

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu May 14 22:06:32 UTC 2020 on sn-devel-184
selftest/knownfail.d/netfileenum [deleted file]
source3/rpc_server/srvsvc/srv_srvsvc_nt.c