]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cifs: set MAY_SIGN when sec=krb5
authorMartijn de Gouw <martijn.de.gouw@prodrive.nl>
Wed, 24 Oct 2012 09:45:46 +0000 (11:45 +0200)
committerSteve French <sfrench@us.ibm.com>
Tue, 19 Feb 2013 01:40:04 +0000 (19:40 -0600)
Setting this secFlg allows usage of dfs where some servers require
signing and others don't.

Signed-off-by: Martijn de Gouw <martijn.de.gouw@prodrive.nl>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c

index 12b3da39733b2bc180cd1ac4a164d9f0d071e99a..d997737950fb9693dec8cd6f94f11f61581f417e 100644 (file)
@@ -996,7 +996,7 @@ static int cifs_parse_security_flavors(char *value,
 
        switch (match_token(value, cifs_secflavor_tokens, args)) {
        case Opt_sec_krb5:
-               vol->secFlg |= CIFSSEC_MAY_KRB5;
+               vol->secFlg |= CIFSSEC_MAY_KRB5 | CIFSSEC_MAY_SIGN;
                break;
        case Opt_sec_krb5i:
                vol->secFlg |= CIFSSEC_MAY_KRB5 | CIFSSEC_MUST_SIGN;