Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b7bc840 authored by Martijn de Gouw's avatar Martijn de Gouw Committed by Steve French
Browse files

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: default avatarMartijn de Gouw <martijn.de.gouw@prodrive.nl>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 07b92d0d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1031,7 +1031,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;