cifs: remove support for NTLM and weaker authentication algorithms
for SMB1. This removes the dependency to DES. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
committed by
Steve French
parent
18d04062f8
commit
76a3c92ec9
@@ -250,9 +250,6 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v)
|
||||
#ifdef CONFIG_CIFS_ALLOW_INSECURE_LEGACY
|
||||
seq_printf(m, ",ALLOW_INSECURE_LEGACY");
|
||||
#endif
|
||||
#ifdef CONFIG_CIFS_WEAK_PW_HASH
|
||||
seq_printf(m, ",WEAK_PW_HASH");
|
||||
#endif
|
||||
#ifdef CONFIG_CIFS_POSIX
|
||||
seq_printf(m, ",CIFS_POSIX");
|
||||
#endif
|
||||
@@ -929,14 +926,6 @@ cifs_security_flags_handle_must_flags(unsigned int *flags)
|
||||
*flags = CIFSSEC_MUST_NTLMSSP;
|
||||
else if ((*flags & CIFSSEC_MUST_NTLMV2) == CIFSSEC_MUST_NTLMV2)
|
||||
*flags = CIFSSEC_MUST_NTLMV2;
|
||||
else if ((*flags & CIFSSEC_MUST_NTLM) == CIFSSEC_MUST_NTLM)
|
||||
*flags = CIFSSEC_MUST_NTLM;
|
||||
else if (CIFSSEC_MUST_LANMAN &&
|
||||
(*flags & CIFSSEC_MUST_LANMAN) == CIFSSEC_MUST_LANMAN)
|
||||
*flags = CIFSSEC_MUST_LANMAN;
|
||||
else if (CIFSSEC_MUST_PLNTXT &&
|
||||
(*flags & CIFSSEC_MUST_PLNTXT) == CIFSSEC_MUST_PLNTXT)
|
||||
*flags = CIFSSEC_MUST_PLNTXT;
|
||||
|
||||
*flags |= signflags;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user