smb3: clarify mount warning 6.8-rc3-smb3-client-fixes
authorSteve French <stfrench@microsoft.com>
Wed, 7 Feb 2024 05:57:18 +0000 (23:57 -0600)
committerSteve French <stfrench@microsoft.com>
Fri, 9 Feb 2024 20:43:27 +0000 (14:43 -0600)
When a user tries to use the "sec=krb5p" mount parameter to encrypt
data on connection to a server (when authenticating with Kerberos), we
indicate that it is not supported, but do not note the equivalent
recommended mount parameter ("sec=krb5,seal") which turns on encryption
for that mount (and uses Kerberos for auth).  Update the warning message.

Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/fs_context.c

index 52cbef2eeb28f6ba0013063b4bafcecc08c3a02d..aec8dbd1f9dbd2b685219850c65b0695ba657aba 100644 (file)
@@ -211,7 +211,7 @@ cifs_parse_security_flavors(struct fs_context *fc, char *value, struct smb3_fs_c
 
        switch (match_token(value, cifs_secflavor_tokens, args)) {
        case Opt_sec_krb5p:
-               cifs_errorf(fc, "sec=krb5p is not supported!\n");
+               cifs_errorf(fc, "sec=krb5p is not supported. Use sec=krb5,seal instead\n");
                return 1;
        case Opt_sec_krb5i:
                ctx->sign = true;