From: Stefan Metzmacher Date: Wed, 15 Sep 2021 17:29:40 +0000 (+0200) Subject: smb2_server: skip tcon check and chdir_current_service() for FSCTL_QUERY_NETWORK_INTE... X-Git-Tag: tdb-1.4.6~478 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4d0bb164f028da46eab766135bb38175c117deb;p=thirdparty%2Fsamba.git smb2_server: skip tcon check and chdir_current_service() for FSCTL_QUERY_NETWORK_INTERFACE_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 Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Wed Dec 1 11:51:50 UTC 2021 on sn-devel-184 --- diff --git a/selftest/knownfail.d/smb2.ioctl.bug14788 b/selftest/knownfail.d/smb2.ioctl.bug14788 deleted file mode 100644 index b228bfafe47..00000000000 --- a/selftest/knownfail.d/smb2.ioctl.bug14788 +++ /dev/null @@ -1 +0,0 @@ -^samba3.smb2.ioctl.*.bug14788.NETWORK_INTERFACE diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 4365d767c88..042f343b0ca 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -3212,6 +3212,9 @@ NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req) case FSCTL_VALIDATE_NEGOTIATE_INFO: call = &_root_ioctl_call; break; + case FSCTL_QUERY_NETWORK_INTERFACE_INFO: + call = &_root_ioctl_call; + break; } }