[linux-cifs-client] [PATCH] cifs: bump cifs_spnego upcall version to 2

Jeff Layton jlayton at redhat.com
Fri Aug 22 12:05:28 GMT 2008


When we added the ability for the kernel to send sec=mskrb5, we subtly
broke people running old versions of cifs.upcall. The problem is that
if the server prefers MSKRB5 (and most do), then we'll end up sending
sec=mskrb5 to the upcall. Old cifs.upcall versions don't understand
this secType however and will fail.

I'll also plan to simultaneously bump the upcall version in the samba
sources and modify the upcall program to handle older kernels
appropriately.

Signed-off-by: Jeff Layton <jlayton at redhat.com>
---
 fs/cifs/cifs_spnego.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/cifs/cifs_spnego.h b/fs/cifs/cifs_spnego.h
index 05a34b1..e4041ec 100644
--- a/fs/cifs/cifs_spnego.h
+++ b/fs/cifs/cifs_spnego.h
@@ -23,7 +23,7 @@
 #ifndef _CIFS_SPNEGO_H
 #define _CIFS_SPNEGO_H
 
-#define CIFS_SPNEGO_UPCALL_VERSION 1
+#define CIFS_SPNEGO_UPCALL_VERSION 2
 
 /*
  * The version field should always be set to CIFS_SPNEGO_UPCALL_VERSION.
-- 
1.5.5.1



More information about the linux-cifs-client mailing list