Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2775109rdb; Mon, 12 Feb 2024 16:58:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyJUyK/IhtcA3MIv0EqfOzeCPQF/i4jSexwrfwm7bDbexGnI1pXnBgSjYzPzI5E2LB367h X-Received: by 2002:a05:620a:4008:b0:785:d732:b31 with SMTP id h8-20020a05620a400800b00785d7320b31mr4983123qko.24.1707785881916; Mon, 12 Feb 2024 16:58:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707785881; cv=pass; d=google.com; s=arc-20160816; b=TOd5q7w5JOAb7aDx17FFbwjjpV4PDHNdBTKLOtXowqt5IxEXMBtI5TgdUDGR+8riMu VozaHkob2xcfsC9irk34MADucTqI8f8eb/PvcUevb/tdtN/9dMGOGvdK6EZ2PkCt5djs Tw52vyYydrqT26BER+z84Dy25awy9lDFI9Zw6Y/PY8vpJ6310itE8QKRJSc20Olr3QPp Lm1l3a0yGfTfRDmX8N++nPt+nIPjvlpSifwXhvDVo+EqG35Q0k9TUjM33Cd40yvaUVwi OVbSpo7leWmBE/YxgZN5Dfj7FDWSFY29uaJfKkt2204hPR5GiuVRF2avwpl+HSVQXHIJ fPtQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=BfJT1paoz4/+29zkTEGz0WphKSHvdzpmYRBzbmunV2o=; fh=l0rAUNNWG23ZxY2c+YaYVKx0LTCcotSLsVkhqhOiHpo=; b=I7UUc+rIBsjpKTR7UmT3TtudbykUVqwAh46IfgNJtqZGsxZrOfj/HKljCOEmdLsDGC w2Ft9dmAixSRHFlY502AeLlI9NQYQjb5o0l8BYVMwa7weNhuNcKlRyRZ9HxKlnTj4AfZ a+jbxw8XiVnC4vhslcDPHbhR/7dEml8frjA231Rs/QUULzFgsCnAL20DKmmO8c53ydse jiSUgAXZATLUrhE6BC3S4o1kGqXtxqdtK/lBlZNgxYXCm4GlqaR+EeyXzhNtVQ+RxX9y CkHU9mtlzhl5FfhUAEEAAaz2LrusYygmq70XHhx3FLAAdkPznLDnz0ebsHCXyxuOIeQG t7dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lJ5n8b5N; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62712-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUIq5MOLw6WICrbD+N2EXZhfCY3fTKenP5O9ZceQhyne143NyyuZzZia0Gmkx1leNr3SBdj5KdSDasvARrgd3u0ZNVq6zMvKHw+1oI4UQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x13-20020ae9e64d000000b0078715367702si1670509qkl.702.2024.02.12.16.58.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 16:58:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lJ5n8b5N; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62712-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62712-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B0941C23BC3 for ; Tue, 13 Feb 2024 00:58:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 007A185261; Tue, 13 Feb 2024 00:23:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lJ5n8b5N" 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 11C6384FC2; Tue, 13 Feb 2024 00:23:24 +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=1707783804; cv=none; b=uKmuP/KkHK22cr1MhPRis2/kCknWu/zZmCLAjBys8KssKaaxC1YG0s6CmomdEwvS7F4q1oCyeE3xyCVteDXvrfS6l2ZamFMeafdGC6/y2U2Y4Sm0LXGA+L7yROlI6NJDomnhrphutKypnsOYvnHt+2oYiple8MKRMnYw60zEnlQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707783804; c=relaxed/simple; bh=oWzmkZ1ju8RBE5yuRIcaKQBsApDM7Iev/GO/WME2q6w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AJ9TDSL5/oKL8Kb/VwxuG1SLmR5LuPjz1ADqUCr8zA4kyN33rucDfgLSIfemN0/efGnnLEtvk8fiwjWXTfW/WNjFiVCymPOwBo7CQcWLjetRebKwbYtjrquL/HwcZMSXVgic0C70O6PY242n+tEinIJ9d2UiRS1HzzvbDR181Hw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lJ5n8b5N; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2D47C433C7; Tue, 13 Feb 2024 00:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707783803; bh=oWzmkZ1ju8RBE5yuRIcaKQBsApDM7Iev/GO/WME2q6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lJ5n8b5NG1eGjRb9ZnKEkBcjeLPyRSQ1mq2Aw/R54m9kh8rygB7smrI6iTqg4wXue ZWVV0tD7SDMMa/TJxzwTlg3q2qQ7iVVHuoEUC/vZVKAayuCDHuWJBklvOByYHWdABs mDMgSDRbYvSiO3BwRMqwo74vQxN571GxioBVwXPvENzL0RFYgNPDaNPfa1JOBBLuaf 0m25lIXX8ZnKsd5/Da8yUsxPGb+EH1vpk880fTCBVIt7zykIzREFoNRWNTMj4zWZzZ vDa2f2tVoH6O4MoKoI7BYhP9WDv6h6iVhr03bkOdAVisCrdmf3ObMF/V30O0A9pbCW bBJYXxL5rIx2A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Steve French , Shyam Prasad N , Sasha Levin , sfrench@samba.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org Subject: [PATCH AUTOSEL 6.1 28/28] smb3: clarify mount warning Date: Mon, 12 Feb 2024 19:22:26 -0500 Message-ID: <20240213002235.671934-28-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213002235.671934-1-sashal@kernel.org> References: <20240213002235.671934-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.77 Content-Transfer-Encoding: 8bit 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 f4818599c00a..4d5302b58b53 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