Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp2085403rwe; Sat, 15 Apr 2023 11:12:26 -0700 (PDT) X-Google-Smtp-Source: AKy350aCMOm3LoXhzksUU5nnUr3xkkq8ZIwGie+MEiTgNi8ssaPb1j41++lnWMppFaZBdg3YKffq X-Received: by 2002:a05:6a20:8b0a:b0:da:a7db:48bb with SMTP id l10-20020a056a208b0a00b000daa7db48bbmr9949762pzh.42.1681582346334; Sat, 15 Apr 2023 11:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681582346; cv=none; d=google.com; s=arc-20160816; b=wzIGBtkdyQijKs7/9HF8KhOvadDBTycnnFEGnTCiUSy/nAgluJnYrKQPQoF5ig/xFV L6hTEFGS0VXZ0PsgpN2m5XE3+2lQ74VNKPm3LtXOE+10FXj1+WKTUcACDbtHKMRnY3jk SK6Ax1EaeZ+yju1iRRV4Yzr+5J4bG+EJ4ojjg13KWb3ojidKIBDPMttYUn/UrjXz/D92 f9rW0nUUZM11sV9MV4MYkpwOwuojJE+QqiDqWbfurp09UbZT9JnSlaDx7SaLaHaVrNp7 fZgf3uEGSExb3LqubiOTQzlGK1y7w/ntYnQtwRcg85ShUJWv+DZCYhobWbM4x7qOAzax MREw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=7d2W1ucmVY/6X5FpK/ySjW9qzCCwXRXU+W4oYYj4ze4=; b=LdwFTxcLVoAbNXleDEBAVoyoVnsaU77Bfk6IdnZcpnAXcWV8xA7HTx6uBGqXwmJTID vPtLO5MLVX7bmG31ZRl2B/wd3XCzS+8O6Cu3/aWAukzd/yHeKnMAKqYB66Qm5XG17ZDB tzep4lJTuHbF8aQYkeic5O3c06HmLRSDWcXg64wpYvOL6dzfGdUVnIUtxuYhuuPFXKGk 0Dj33pI5hJoknJwYb4pyMiSX/SU6vaS4W0TP4ro8UKJ8c33wFykunZNtuJDRafTCQ0Tw uOZ6JnD5iiojRtK4cif8RiIc+nKFGLksSxw0Bve4CXM7FUqiNISkV8KFTAtlwxaKaYcU pF1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FFf2Perj; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a63ff44000000b00513601ad3cesi7287217pgk.150.2023.04.15.11.12.02; Sat, 15 Apr 2023 11:12:26 -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=@redhat.com header.s=mimecast20190719 header.b=FFf2Perj; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230046AbjDOR56 (ORCPT + 99 others); Sat, 15 Apr 2023 13:57:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbjDOR55 (ORCPT ); Sat, 15 Apr 2023 13:57:57 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C60603C13 for ; Sat, 15 Apr 2023 10:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681581433; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7d2W1ucmVY/6X5FpK/ySjW9qzCCwXRXU+W4oYYj4ze4=; b=FFf2PerjBENnkU9tipqLSmGYhq36V6ZKiWaQfpeyn/M6SaelJsbfwKnilpKeM1JUVpFY02 u9op4/xiHN09G+b6JNXtjv3vz10cvauRiGpgcJ47MAM/4qdlza6VWI3Agp2khKCz4WKyFv QyvCohuq+kQMcifxihoMQxTTqu2JEoA= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-215-hNgrvt0-NWKC7hBaX6_I8w-1; Sat, 15 Apr 2023 13:57:12 -0400 X-MC-Unique: hNgrvt0-NWKC7hBaX6_I8w-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-74cf009f476so5826585a.0 for ; Sat, 15 Apr 2023 10:57:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681581432; x=1684173432; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7d2W1ucmVY/6X5FpK/ySjW9qzCCwXRXU+W4oYYj4ze4=; b=TLEhinmWp7asr89ZwFHTX1BSOzXr1UJ0nQTr/EYQOc9JSvuYuEuNFDPNOwz+5KKzh4 /lXyat8jtCttNI4GKHO5YIABvciHvpyGcJXyxxRU4sjJ9oXhoCTol7gYOAJLaJPkWsRJ KdSd3P3Q6+x1p/pOXD2IxwspcDVLC5Dg2jqYU6h5S9p6UO2MzF2eNbZfrig0q5c/jCyK NhsWs5h6oJe4rSdDVX8MyMjns+MAc9YBcliUr5eECxA16CVLtRda6OEFR7rCyvyRA7cR Mt3gJrxHcsotFbKX8NE5sJrCwm81lGY5CRa47gZmDmzYQZ+SNf+3rWI2wDkoEJbOK7F+ 064g== X-Gm-Message-State: AAQBX9dc+h/zw8MVqiRjCFj23auDfjMJOOUaSq7WQ3G5Hy1JOQy6E8ba 0Hv18JzC5Aln2fttReZpGVY8zcAYWMNEHdEfj9tvaI3spZhHRLvd+JRSOLG9aihUrjI6axa/+sl PMP6YHo6qLPhaotvsF/cA X-Received: by 2002:a05:6214:4108:b0:5ef:4de8:fb0d with SMTP id kc8-20020a056214410800b005ef4de8fb0dmr9284233qvb.5.1681581431877; Sat, 15 Apr 2023 10:57:11 -0700 (PDT) X-Received: by 2002:a05:6214:4108:b0:5ef:4de8:fb0d with SMTP id kc8-20020a056214410800b005ef4de8fb0dmr9284214qvb.5.1681581431488; Sat, 15 Apr 2023 10:57:11 -0700 (PDT) Received: from [172.31.1.12] ([70.105.248.80]) by smtp.gmail.com with ESMTPSA id o8-20020a05620a2a0800b0074411b03972sm2021563qkp.51.2023.04.15.10.57.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 15 Apr 2023 10:57:10 -0700 (PDT) Message-ID: <0c7ba622-6c08-a8b5-8f88-6eb493d2a10b@redhat.com> Date: Sat, 15 Apr 2023 13:57:09 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2 0/4] nfs-utils changes for RPC-with-TLS To: Chuck Lever Cc: linux-nfs@vger.kernel.org, rick.macklem@gmail.com, kernel-tls-handshake@lists.linux.dev References: <168009806320.2522.10415374334827613451.stgit@manet.1015granger.net> Content-Language: en-US From: Steve Dickson In-Reply-To: <168009806320.2522.10415374334827613451.stgit@manet.1015granger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, 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 On 3/29/23 10:08 AM, Chuck Lever wrote: > Hi Steve- > > This is client- and server-side nfs-utils support for RPC-with-TLS. > The client side support at this point is only a man page update > since the kernel handles mount option processing itself. > > The server implementation can support both the opportunistic use of > transport layer security (it will be used if the client cares to), > and the required use of transport layer security (the server > requires the client to use it to access a particular export). > > Without any other user space componentry, this implementation is > able to handle clients that request the use of RPC-with-TLS. To > support security policies that restrict access to exports based on > the client's use of TLS, modifications to exportfs and mountd are > needed. These are contained in this post, and can also be found > here: > > git://git.linux-nfs.org/projects/cel/nfs-utils.git > > The kernel patches, along with the handshake upcall, are carried in > the topic-rpc-with-tls-upcall branch available from: > > https://git.kernel.org/pub/scm/linux/kernel/git/cel/linux.git > > Soon I hope to compose a new man page in Section 7 that will provide > an overview and quick set-up guidance for NFS's use of RPC-with-TLS. > > > Changes since v1: > - Addressed Jeff's review comments > - Updated nfs.man as well > > --- > > Chuck Lever (4): > libexports: Fix whitespace damage in support/nfs/exports.c > exports: Add an xprtsec= export option > exports(5): Describe the xprtsec= export option > nfs(5): Document the new "xprtsec=" mount option Committed... (tag: nfs-utils-2-6-3-rc8) Thank you this work!!! steved. > > > support/export/cache.c | 15 ++++++ > support/include/nfs/export.h | 14 +++++ > support/include/nfslib.h | 14 +++++ > support/nfs/exports.c | 100 ++++++++++++++++++++++++++++++++--- > utils/exportfs/exportfs.c | 1 + > utils/exportfs/exports.man | 51 +++++++++++++++++- > utils/mount/nfs.man | 34 +++++++++++- > 7 files changed, 219 insertions(+), 10 deletions(-) > > -- > Chuck Lever >