Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2817430rwp; Fri, 14 Jul 2023 11:49:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHVRdBGQficy2iiq8pz18QpM1M9LyW6I//2/ZJv3jKOeLB0RvQ19Ou5+ZqZVJlDt0h+d5aq X-Received: by 2002:aa7:c6d3:0:b0:51d:9905:6f60 with SMTP id b19-20020aa7c6d3000000b0051d99056f60mr4895988eds.41.1689360553164; Fri, 14 Jul 2023 11:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689360553; cv=none; d=google.com; s=arc-20160816; b=MFxfNwrjl7s/xpCsb4rodHRogTnIeIR1Mw4Eb66S8XnZS9SMw5vUkAX6ib4MzO+A/L /Sjwugje3n6sfN1ZG7fceG9v65znZF93DWOVEBwiGPBwUaU5Ojut6wggsl2kCEMOmNt+ lbuaTdOdpMKf9fCUryzIXQq76nPINQDjQB+aTVK8feVSTlPUHqMr7xxzSezOJ0/65TnI kYP9PBZ3E+XRvkx12kK5jGf4No0oomJORLWxM1ADgAf82axSvMnEr/O4+EtEqR5VOnyb jUp4kKYMULwcovwS4qmBY6BlB/9Sm63hqWmXguHC73T5OxPHVCgnZ8SuONbz43jhfEXs R4JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:to:from:subject:dkim-signature; bh=Y7FLFUIDWk94i29k0AA4s6MojjnmdqHGxF0pi8LHRDQ=; fh=lNETXfcvWvAHy6CZ9Xh+XcIkzVHdm5I222az9yNy3o4=; b=vBmhm3l/fwfoMQwaZiVB68hyztSTSlfCZNm96tW2ib5z5nT+9YwD8Ei0HL5yx9S1PC vFJvHb4sUiOb5HmHloUiPcC7doW3jyVMXT+M1yyKNgC14/HhVocxFObshwA8j8HwJb5i bX3NbxUCSW4KPN0iL0afp8r9DpHXqBNHWQ9rnWXXiujUT1JEa+vdrBy4GelXQZ8GPeRi Uljjt/xhKhpe59ND8IeiW93dyrO4K2L/dYm4qtxoFyLxlE2MQ6ctoAxBT04WSFAtWUL1 H0TSX2oEnvpXtHRE44+Micwsp27SaflRU4/ho6ynnIwRo2ie+hFBFWyQlbcvUwFtCCnt KbWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fuak3dJe; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a50ee82000000b0051e24863dd2si9175192edr.377.2023.07.14.11.48.41; Fri, 14 Jul 2023 11:49:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fuak3dJe; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235895AbjGNSgY (ORCPT + 99 others); Fri, 14 Jul 2023 14:36:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236359AbjGNSgW (ORCPT ); Fri, 14 Jul 2023 14:36:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9CEA26B6 for ; Fri, 14 Jul 2023 11:36:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 87DBE61DC2 for ; Fri, 14 Jul 2023 18:36:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0933C433C8; Fri, 14 Jul 2023 18:36:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689359779; bh=Dv12fPbn55bYujD9Y8vvYBg+PDh+dMBt+YEUEyQgtrU=; h=Subject:From:To:Cc:Date:From; b=fuak3dJeVNJOJcnZ6qxBHC+na72LPWu5oQ/wdSm1lno58CGAxPOXm7p5iFf1lTInv lbxcWk7lI39yWZEF7i6f1u9l0eb6BOZTQ96ujPUhDTZtTAOekU9WmWw3FASYNQADJf gZ9dFde0Qy7Olej4ZVFsTVCCbQ5x2u0ZMUKujkmjvNoc44AyRoTJWbQyxGU7nkvvPs Y5a7ijqHlmll+rlWheGly5FiyDdkFBI91YY+/YLOyD0g8OC89ktBIziFRTJ7hrwzYB J4ZAQQF2DvlqumplTrlzkTFd/wq7kzr+FOyaXicyR7eAKda68bjnEG3B3OrlMvHflt 8w1bq3+RkPSjw== Subject: [PATCH v1] nfs(5): Document the new "xprtsec=" mount option From: Chuck Lever To: SteveD@redhat.com Cc: Chuck Lever , linux-nfs@vger.kernel.org, kernel-tls-handshake@lists.linux.dev Date: Fri, 14 Jul 2023 14:36:18 -0400 Message-ID: <168935977873.1850.8214830433103692090.stgit@bazille.1015granger.net> User-Agent: StGit/1.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Chuck Lever More information about RPC-with-TLS and some brief set-up guidance are to be provided in a separate man page in Section 7. Signed-off-by: Chuck Lever --- utils/mount/nfs.man | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/utils/mount/nfs.man b/utils/mount/nfs.man index d9f34df36b42..dfc31a5dad26 100644 --- a/utils/mount/nfs.man +++ b/utils/mount/nfs.man @@ -574,7 +574,43 @@ The .B sloppy option is an alternative to specifying .BR mount.nfs " -s " option. - +.TP 1.5i +.BI xprtsec= policy +Specifies the use of transport layer security to protect NFS network +traffic on behalf of this mount point. +.I policy +can be one of +.BR none , +.BR tls , +or +.BR mtls . +.IP +If +.B none +is specified, +transport layer security is forced off, even if the NFS server supports +transport layer security. +If +.B tls +is specified, the client uses RPC-with-TLS to provide in-transit +confidentiality. +If +.B mtls +is specified, the client uses RPC-with-TLS to authenticate itself and +to provide in-transit confidentiality. +If either +.B tls +or +.B mtls +is specified and the server does not support RPC-with-TLS or peer +authentication fails, the mount attempt fails. +.IP +If the +.B xprtsec= +option is not specified, +the default behavior depends on the kernel version, +but is usually equivalent to +.BR "xprtsec=none" . .SS "Options for NFS versions 2 and 3 only" Use these options, along with the options in the above subsection, for NFS versions 2 and 3 only.