]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smb2_server: skip tcon check and chdir_current_service() for FSCTL_QUERY_NETWORK_INTE...
authorStefan Metzmacher <metze@samba.org>
Wed, 15 Sep 2021 17:29:40 +0000 (19:29 +0200)
committerRalph Boehme <slow@samba.org>
Wed, 1 Dec 2021 11:51:50 +0000 (11:51 +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>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Dec  1 11:51:50 UTC 2021 on sn-devel-184

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 b228bfa..0000000
+++ /dev/null
@@ -1 +0,0 @@
-^samba3.smb2.ioctl.*.bug14788.NETWORK_INTERFACE
index 4365d767c880a5b8d3c661bf42dd0370815587f9..042f343b0ca0832e7656a220044c716fb010a5fc 100644 (file)
@@ -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;
                }
        }