diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2021-11-05 19:03:57 +0000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-11-08 13:07:56 -0600 |
commit | 49bd49f983b5026e4557d31c5d737d9657c4113e (patch) | |
tree | a1305c508d4ccb71dbccc954ed99adb0003058db /fs/cifs/connect.c | |
parent | c9f1c19cf7c50949885fa5afdb2cb242d61a7fac (diff) | |
download | linux-49bd49f983b5026e4557d31c5d737d9657c4113e.tar.bz2 |
cifs: send workstation name during ntlmssp session setup
During the ntlmssp session setup (authenticate phases)
send the client workstation info. This can make debugging easier on
servers.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 24742b7402d1..c45fed4e18ba 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1948,6 +1948,12 @@ cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb3_fs_context *ctx) if (!ses->domainName) goto get_ses_fail; } + if (ctx->workstation_name) { + ses->workstation_name = kstrdup(ctx->workstation_name, + GFP_KERNEL); + if (!ses->workstation_name) + goto get_ses_fail; + } if (ctx->domainauto) ses->domainAuto = ctx->domainauto; ses->cred_uid = ctx->cred_uid; |