]> err.no Git - linux-2.6/commit
[CIFS] Fix cifsd so shuts down when signing fails during mount
authorSteve French <sfrench@us.ibm.com>
Thu, 4 Oct 2007 20:05:09 +0000 (20:05 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 4 Oct 2007 20:05:09 +0000 (20:05 +0000)
commita013689ddb2a4ba5f0452c053c0bf00bafb686f1
treedaffe3644ed321b602a1f6a4e97dc6c6ef329dfb
parentd12fd121afd4f87cbc7675f8f6b651d649534f15
[CIFS] Fix cifsd so shuts down when signing fails during mount

Fixes two problems:
1) we dropped down to negotiating lanman if we did not recognize the
mechanism (krb5 e.g.)
2) we did not stop cifsd (thus will fail when doing rmod cifs with
slab free errors) when we fail tcon but have a bad session (which is
the case in which signing is required but we don't allow signing on
the client)

It also turns on extended security flag in the header when passing
"sec=krb5" on mount command (although kerberos support is not done of
course)

Acked-by: Jeff Layton <jlayton@redhat.com>
CC: Shaggy <shaggy@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_debug.c
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/connect.c