From c850ce96fd32ea91d8a31223bb09dd5b8b98d99e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 16 Aug 2021 17:28:05 +0200 Subject: [PATCH] smb2_server: skip tcon check and chdir_current_service() for FSCTL_VALIDATE_NEGOTIATE_INFO 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 Reviewed-by: Ralph Boehme --- selftest/knownfail.d/smb2.ioctl.bug14788 | 1 - source3/smbd/smb2_server.c | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 selftest/knownfail.d/smb2.ioctl.bug14788 diff --git a/selftest/knownfail.d/smb2.ioctl.bug14788 b/selftest/knownfail.d/smb2.ioctl.bug14788 deleted file mode 100644 index 843e7d81517..00000000000 --- a/selftest/knownfail.d/smb2.ioctl.bug14788 +++ /dev/null @@ -1 +0,0 @@ -^samba3.smb2.ioctl.*.bug14788.VALIDATE_NEGOTIATE diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 6b66eb1d322..10427fe2177 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -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; } } -- 2.11.4.GIT