s3:smbd: protect smbd_do_unlocking() with share_mode_do_locked_vfs_allowed()
commit7c6113de2b61f9a87906bb56c1b2a1f4c7974e89
authorStefan Metzmacher <metze@samba.org>
Thu, 18 Aug 2022 11:57:56 +0000 (18 13:57 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 20 Sep 2022 00:34:35 +0000 (20 00:34 +0000)
tree2d20f1cda1b51dc9de1a6f7013cf951743878672
parentf971a4ae31fd664ecb0ab3fd2c2ab1fc2275e68d
s3:smbd: protect smbd_do_unlocking() with share_mode_do_locked_vfs_allowed()

share_mode_do_locked() will be make static soon.

Here we just want to avoid concurrent access to brlock.tdb
in order to maintain the lock order, we're not interested in the
locking.tdb content at all, expect that there's at least one
entry and we want to wake potential watchers.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_reply.c