From: Stefan Metzmacher Date: Mon, 16 Aug 2021 15:28:05 +0000 (+0200) Subject: smb2_server: skip tcon check and chdir_current_service() for FSCTL_VALIDATE_NEGOTIATE... X-Git-Tag: tdb-1.4.6~484 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c850ce96fd32ea91d8a31223bb09dd5b8b98d99e;p=thirdparty%2Fsamba.git 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 --- 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; } }