aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2013-11-15 23:50:24 -0600
committerSteve French <smfrench@gmail.com>2013-11-15 23:50:24 -0600
commit0cbaa53cdd33080c1e2d67ad9295b83c7954f2b3 (patch)
tree2980f4a149b80f384ed3de6defabcd2f4974a76e /fs/cifs/smb2pdu.c
parentsetfacl removes part of ACL when setting POSIX ACLs to Samba (diff)
downloadlinux-dev-0cbaa53cdd33080c1e2d67ad9295b83c7954f2b3.tar.xz
linux-dev-0cbaa53cdd33080c1e2d67ad9295b83c7954f2b3.zip
[CIFS] Warn if SMB3 encryption required by server
We do not support SMB3 encryption yet, warn if server responds that SMB3 encryption is mandatory. Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r--fs/cifs/smb2pdu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index ca7f307ad97a..d65270c290a1 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -630,6 +630,8 @@ ssetup_ntlmssp_authenticate:
goto ssetup_exit;
ses->session_flags = le16_to_cpu(rsp->SessionFlags);
+ if (ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA)
+ cifs_dbg(VFS, "SMB3 encryption not supported yet\n");
ssetup_exit:
free_rsp_buf(resp_buftype, rsp);