From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05D171386CB; Tue, 27 Feb 2024 14:16:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709043360; cv=none; b=S0RhwX4UMxL4r+i+EkOQPX/Dgdos6j3CbeIZaKA8qL9uZn5ptCnLWGcu/qbQO1Bvp0o90HB7eppPQcb/lLvMjpDp1GJ+AzO/QMxdAeEZpXNfvTO9KZvgGiMnTMKdBNLNB/lZ9pkz+GIC44Jw92w5GG8O68q+6/cEeJgt9UShxUc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709043360; c=relaxed/simple; bh=OC+rZDBBaI0AeYiAvDV45KX3sTV7POUjLrEztzn0BxE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eUE7owRHsOI1fMvqybS4yGsjWjL7mStF27+4zeowGd5HllcvZfHfATGpZxNEhwUC/ZgnOAiEwqMPa+w5NByvmYOM2s7iCCye6JzO0dUWzhM1vsT+NzrBYjfuMmF7kCk8YdpoFb8oaXPOLnRgd/OLFyeIJkAdE4FJQsOAMuM0uxU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=puW71W2Y; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="puW71W2Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87213C433C7; Tue, 27 Feb 2024 14:15:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709043359; bh=OC+rZDBBaI0AeYiAvDV45KX3sTV7POUjLrEztzn0BxE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=puW71W2YZ2+Avo7DfBQSOuI4yGYKRMGmGZr6QEpfiKvvjOLFcsMTRjgGmr4A1/It9 tNRTzIQVNnT7geMTZc0CAeZcTxPYkUR4FMbqYDL/b/cS+yjnC+CW2LiSvxnedD8ElS fZe0rdNPYjPyCaHM05Zx0GxjOHuogjDtDInsCfX8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Shyam Prasad N , Steve French , Sasha Levin Subject: [PATCH 6.1 080/195] smb3: clarify mount warning Date: Tue, 27 Feb 2024 14:25:41 +0100 Message-ID: <20240227131613.132322071@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240227131610.391465389@linuxfoundation.org> References: <20240227131610.391465389@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Steve French [ Upstream commit a5cc98eba2592d6e3c5a4351319595ddde2a5901 ] 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 Signed-off-by: Steve French Signed-off-by: Sasha Levin --- fs/smb/client/fs_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c index f4818599c00a2..4d5302b58b534 100644 --- a/fs/smb/client/fs_context.c +++ b/fs/smb/client/fs_context.c @@ -209,7 +209,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; -- 2.43.0