smb3: warn on confusing error scenario with sec=krb5
authorSteve French <stfrench@microsoft.com>
Thu, 16 Jul 2020 05:34:21 +0000 (00:34 -0500)
committerSteve French <stfrench@microsoft.com>
Sun, 2 Aug 2020 23:00:25 +0000 (18:00 -0500)
commit0a018944eee913962bce8ffebbb121960d5125d9
treeaaab56b9c18d0cf82dd9a92baebe6794e3869baf
parentbaf57b56d3604880ccb3956ec6c62ea894f5de99
smb3: warn on confusing error scenario with sec=krb5

When mounting with Kerberos, users have been confused about the
default error returned in scenarios in which either keyutils is
not installed or the user did not properly acquire a krb5 ticket.
Log a warning message in the case that "ENOKEY" is returned
from the get_spnego_key upcall so that users can better understand
why mount failed in those two cases.

CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c