OSDN Git Service

cifs: To match file servers, make sure the server hostname matches
authorShyam Prasad N <sprasad@microsoft.com>
Thu, 14 Oct 2021 11:52:39 +0000 (11:52 +0000)
committerSteve French <stfrench@microsoft.com>
Tue, 2 Nov 2021 18:12:55 +0000 (13:12 -0500)
commit7be3248f313930ff3d3436d4e9ddbe9fccc1f541
tree59509a1b82e5b7f0d2568b6f524399d06d0cbb8f
parent3906fe9bb7f1a2c8667ae54e967dc8690824f4ea
cifs: To match file servers, make sure the server hostname matches

We generally rely on a bunch of factors to differentiate between servers.
For example, IP address, port etc.

For certain server types (like Azure), it is important to make sure
that the server hostname matches too, even if the both hostnames currently
resolve to the same IP address.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c
fs/cifs/fs_context.c
fs/cifs/fs_context.h