smb2_server: skip tcon check and chdir_current_service() for FSCTL_VALIDATE_NEGOTIATE...
authorStefan Metzmacher <metze@samba.org>
Mon, 16 Aug 2021 15:28:05 +0000 (17:28 +0200)
committerJule Anger <janger@samba.org>
Mon, 13 Dec 2021 08:41:08 +0000 (08:41 +0000)
We should not fail this just because the user doesn't have permissions
on the share root.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit c850ce96fd32ea91d8a31223bb09dd5b8b98d99e)

selftest/knownfail.d/smb2.ioctl.bug14788 [deleted file]
source3/smbd/smb2_server.c

diff --git a/selftest/knownfail.d/smb2.ioctl.bug14788 b/selftest/knownfail.d/smb2.ioctl.bug14788
deleted file mode 100644 (file)
index 843e7d8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-^samba3.smb2.ioctl.*.bug14788.VALIDATE_NEGOTIATE
index ce9a1e0014334683f0998448b1b4b444e39a0346..f1c615b2240a2790372fdb2369d5bd2f0ba1b3a8 100644 (file)
@@ -3114,6 +3114,9 @@ NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req)
                case FSCTL_SMBTORTURE_FORCE_UNACKED_TIMEOUT:
                        call = &_root_ioctl_call;
                        break;
+               case FSCTL_VALIDATE_NEGOTIATE_INFO:
+                       call = &_root_ioctl_call;
+                       break;
                }
        }