]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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)
committerRalph Boehme <slow@samba.org>
Wed, 1 Dec 2021 11:04:29 +0000 (11:04 +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>
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 6b66eb1d32232001adf8b541ff7da0cb6c980484..10427fe217714dff461576cb3cb74f36683f1c5d 100644 (file)
@@ -3211,6 +3211,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;
                }
        }