summaryrefslogtreecommitdiff
path: root/fs/cifs/fs_context.h
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2021-10-14 14:52:39 +0300
committerSteve French <stfrench@microsoft.com>2021-11-02 21:12:55 +0300
commit7be3248f313930ff3d3436d4e9ddbe9fccc1f541 (patch)
tree59509a1b82e5b7f0d2568b6f524399d06d0cbb8f /fs/cifs/fs_context.h
parent3906fe9bb7f1a2c8667ae54e967dc8690824f4ea (diff)
downloadlinux-7be3248f313930ff3d3436d4e9ddbe9fccc1f541.tar.xz
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>
Diffstat (limited to 'fs/cifs/fs_context.h')
-rw-r--r--fs/cifs/fs_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/fs_context.h b/fs/cifs/fs_context.h
index a42ba71d7a81..29601a4eb411 100644
--- a/fs/cifs/fs_context.h
+++ b/fs/cifs/fs_context.h
@@ -166,6 +166,7 @@ struct smb3_fs_context {
char *password;
char *domainname;
char *source;
+ char *server_hostname;
char *UNC;
char *nodename;
char *iocharset; /* local code page for mapping to and from Unicode */