1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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 <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
This commit is contained in:
Stefan Metzmacher 2021-09-15 19:29:40 +02:00 committed by Ralph Boehme
parent 629d161b8f
commit f4d0bb164f
2 changed files with 3 additions and 1 deletions

View File

@ -1 +0,0 @@
^samba3.smb2.ioctl.*.bug14788.NETWORK_INTERFACE

View 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;
}
}