From owner-svn-src-projects@freebsd.org Fri Apr 3 22:23:25 2020 Return-Path: Delivered-To: svn-src-projects@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2478A2749B8 for ; Fri, 3 Apr 2020 22:23:25 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48vDwX4NKXz4VtB; Fri, 3 Apr 2020 22:23:24 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E7807D0D3; Fri, 3 Apr 2020 22:22:50 +0000 (UTC) (envelope-from rmacklem@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 033MMoWP011650; Fri, 3 Apr 2020 22:22:50 GMT (envelope-from rmacklem@FreeBSD.org) Received: (from rmacklem@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 033MMogU011649; Fri, 3 Apr 2020 22:22:50 GMT (envelope-from rmacklem@FreeBSD.org) Message-Id: <202004032222.033MMogU011649@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rmacklem set sender to rmacklem@FreeBSD.org using -f From: Rick Macklem Date: Fri, 3 Apr 2020 22:22:50 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r359621 - projects/nfs-over-tls/usr.sbin/mountd X-SVN-Group: projects X-SVN-Commit-Author: rmacklem X-SVN-Commit-Paths: projects/nfs-over-tls/usr.sbin/mountd X-SVN-Commit-Revision: 359621 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2020 22:23:25 -0000 Author: rmacklem Date: Fri Apr 3 22:22:50 2020 New Revision: 359621 URL: https://svnweb.freebsd.org/changeset/base/359621 Log: Add the "tls", "tlscert" and "tlscertuser" options to exports.5. Modified: projects/nfs-over-tls/usr.sbin/mountd/exports.5 Modified: projects/nfs-over-tls/usr.sbin/mountd/exports.5 ============================================================================== --- projects/nfs-over-tls/usr.sbin/mountd/exports.5 Fri Apr 3 22:19:21 2020 (r359620) +++ projects/nfs-over-tls/usr.sbin/mountd/exports.5 Fri Apr 3 22:22:50 2020 (r359621) @@ -187,7 +187,59 @@ preferred flavor first. If this option is not present, the default security flavor list of just sys is used. .Pp +.Fl tls +specifies that all remote access must be done using RPC-over-TLS. +This option requires the +.Xr rpctlssd 8 +daemon be running on the server. +.Pp +.Fl tlscert +specifies that all remote access must be done using RPC-over-TLS +and that the NFS client(s) must provide a TLS/X509 certificate +that verifies. +This option requires the +.Xr rpctlssd 8 +daemon be running on the server with the +.Fl m +command line option specified for it. +.Pp +.Fl tlscertuser +is similar to +.Fl tlscert +but also requires that there be a +.Dq otherName +field in +.Dq subjectAltName +of the TLS/X509 certificate of the form +.Dq 1.2.3.4.6.9;UTFS8:user@dns_domain +where +.Dq user@dns_domain +maps to a valid user on the NFS server using the same technique as +.Xr nfsuserd 8 +does. The +.Dq user +must be a valid username in the password database and +.Dq dns_domain +the domain of the server (or as set via the +.Fl domain +command line option for +.Xr nfsuserd 8 . +The +.Dq user +is then mapped to +.Dq +credentials that are used for all RPCs, in a manner similar +to the +.Fl mapall +option. +This option requires the +.Xr rpctlssd 8 +daemon be running on the server with the +.Fl u +command line option specified for it. +.Pp +The .Fl ro option specifies that the file system should be exported read-only (default read/write). @@ -537,6 +589,7 @@ afterwards, whereas NFSv3 rejects the mount request. .Xr netgroup 5 , .Xr mountd 8 , .Xr nfsd 8 , +.Xr nfsuserd , .Xr showmount 8 .Sh BUGS The export options are tied to the local mount points in the kernel and