]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[SMB3] Fix sec=krb5 on smb3 mounts
authorSteve French <smfrench@gmail.com>
Thu, 24 Sep 2015 05:52:37 +0000 (00:52 -0500)
committerSteve French <smfrench@gmail.com>
Thu, 24 Sep 2015 05:52:37 +0000 (00:52 -0500)
commitceb1b0b9b4d1089e9f2731a314689ae17784c861
treea1297a789223a06aab10101fe713b3a5c87a4018
parent98ce94c8df762d413b3ecb849e2b966b21606d04
[SMB3] Fix sec=krb5 on smb3 mounts

Kerberos, which is very important for security, was only enabled for
CIFS not SMB2/SMB3 mounts (e.g. vers=3.0)

Patch based on the information detailed in
http://thread.gmane.org/gmane.linux.kernel.cifs/10081/focus=10307
to enable Kerberized SMB2/SMB3

a) SMB2_negotiate: enable/use decode_negTokenInit in SMB2_negotiate
b) SMB2_sess_setup: handle Kerberos sectype and replicate Kerberos
   SMB1 processing done in sess_auth_kerberos

Signed-off-by: Noel Power <noel.power@suse.com>
Signed-off-by: Jim McDonough <jmcd@samba.org>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <steve.french@primarydata.com>
fs/cifs/smb2pdu.c