aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorMartijn de Gouw <martijn.de.gouw@prodrive.nl>2012-10-24 05:45:46 -0400
committerSteve French <sfrench@us.ibm.com>2013-02-27 17:54:25 -0500
commit0b7bc84000d71f3647ca33ab1bf5bd928535c846 (patch)
treea9b32cfe31eb00f5e582a1194b6cb8199d44e926 /fs/cifs
parent07b92d0d570c903aeef4f3b76ebbdd728bc72805 (diff)
cifs: set MAY_SIGN when sec=krb5
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>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 4474a57f30ab..54125e04fd0c 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1031,7 +1031,7 @@ static int cifs_parse_security_flavors(char *value,
1031 1031
1032 switch (match_token(value, cifs_secflavor_tokens, args)) { 1032 switch (match_token(value, cifs_secflavor_tokens, args)) {
1033 case Opt_sec_krb5: 1033 case Opt_sec_krb5:
1034 vol->secFlg |= CIFSSEC_MAY_KRB5; 1034 vol->secFlg |= CIFSSEC_MAY_KRB5 | CIFSSEC_MAY_SIGN;
1035 break; 1035 break;
1036 case Opt_sec_krb5i: 1036 case Opt_sec_krb5i:
1037 vol->secFlg |= CIFSSEC_MAY_KRB5 | CIFSSEC_MUST_SIGN; 1037 vol->secFlg |= CIFSSEC_MAY_KRB5 | CIFSSEC_MUST_SIGN;