From nobody Wed Oct 04 11:23:43 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S0sl35KPwz4vk64; Wed, 4 Oct 2023 11:23:43 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S0sl34kDzz4bXc; Wed, 4 Oct 2023 11:23:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696418623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3HMoOXocNzDDY3Ku4v4lgq/ebkjA2S7xt0RxT4Xfw+k=; b=WOPPsQNr6riau0fZgo02ZhsMJWQHHHbzq6umbJXb4Rk8OSrDNfaawdpn6lzMt8KrCQKUpX KMlAU4aBlbDAUrGEYa5CiPXBVp4BSb8KdD47B9t0yNPjFRArEqr+qJaTDHrHp5grKWlN4C NY/zrBJpwtk6zaU+TLzvJLCpXKWUcMglroBC+sPceMP9LgQjYabMaEojEKZHdIb6xwNTT4 M6QhRMvVVdSjKDGoZWMLSlT5Iwj7roi9ucndfBDanJdZoubtgAZo0v7MKrKqVkmqE4ce4O X40PVLSw1IiWAHBYKkvOCq8XkZ5nZ/o/xJb96I3Wv1LFQua+IYQ2+rdgV9k1kg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696418623; a=rsa-sha256; cv=none; b=W3foDNtpuNqle52+TkfKEye+3Fxy/x9YmDlenAX2Z/ri6iix4mwB5qdxLUCgYS6smUoVjl LUnujmN1UO2JYI7i9nOb2CVAFSgihM0WAF56TyN8bZPhmDLQH6HCh5TwcjxVbwkYhUytMU tJ+6qNPVXn3fd1I6/hhFir8UzlRstSBzDyZObIAIIePFVU56FYJPwLN4YVVAGBHJzxDFiD Lcg/FRCkCyn+NamYKHyAccjMSv5v50RAV4uTym1DNPJvUZ41gFMbEMJZEkFrmJdDSDNIH6 QXsZE8KCohBawNTw6ZU7cL1cHUb/egVdtHz5nYJNBkqDj8U2mDL/903JwUy5Wg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696418623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3HMoOXocNzDDY3Ku4v4lgq/ebkjA2S7xt0RxT4Xfw+k=; b=eLHbIVTRqeFTJa8NSHdk6M1RGsMqZueRNc9G4mrCOrtunZp+T+p5OeQ2ly/vLzBsuSVCKM BAb3n3FPrPXdEGvOytOow2gBY3islV8KTuIuGfd2HVmDJsvMb6M8swEOpNAYuN9j0FwP0G 6/czaQSDzYuWXVnmydyjmwy2e1zfP9LIFvmqnghMU5j48dhBtIe/O8NoNeE6sKsZJz9A7J hcTbhV2NGdZ154VbTkQVJe7vTQ1fvsLsXL8KVmyBFG5+btAetWDEdZ5T3koSoI9AftGeGo wIffB8nMxGDkdAmaJzU4fEzjsPue5UibGf6auZ3j40dNZmjNDFYrI9duWDCqwA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S0sl33n4Yzbjh; Wed, 4 Oct 2023 11:23:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 394BNhhi084674; Wed, 4 Oct 2023 11:23:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 394BNhSH084671; Wed, 4 Oct 2023 11:23:43 GMT (envelope-from git) Date: Wed, 4 Oct 2023 11:23:43 GMT Message-Id: <202310041123.394BNhSH084671@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: 6d5f98380ecf - stable/13 - exports.5: Clean up EXAMPLES and STANDARDS List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 6d5f98380ecf7544c50a156928219c684ac73205 Auto-Submitted: auto-generated The branch stable/13 has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=6d5f98380ecf7544c50a156928219c684ac73205 commit 6d5f98380ecf7544c50a156928219c684ac73205 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-08-16 13:03:20 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2023-10-04 11:11:13 +0000 exports.5: Clean up EXAMPLES and STANDARDS There was a missing sentence in the description of the second mount entry in the example. Fix that and some other bits in the EXAMPLES section. Also, make the STANDARDS section a bit more readable. MFC after: 1 week Sponsored by: Klara Inc. (cherry picked from commit f9572577cf5f28d8e7592b4f1fb24c54e8e79783) --- usr.sbin/mountd/exports.5 | 48 ++++++++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/usr.sbin/mountd/exports.5 b/usr.sbin/mountd/exports.5 index 714e5e72b884..56facef29a12 100644 --- a/usr.sbin/mountd/exports.5 +++ b/usr.sbin/mountd/exports.5 @@ -27,7 +27,7 @@ .\" .\" @(#)exports.5 8.3 (Berkeley) 3/29/95 .\" -.Dd November 9, 2021 +.Dd August 16, 2022 .Dt EXPORTS 5 .Os .Sh NAME @@ -411,6 +411,13 @@ file. the default remote mount-point file .El .Sh EXAMPLES +Given that +.Pa /usr , /u , /a +and +.Pa /u2 +are +local file system mount points, let's consider the following example: +.Pp .Bd -literal -offset indent /usr /usr/local -maproot=0:10 friends /usr -maproot=daemon grumpy.cis.uoguelph.ca 131.104.48.16 @@ -427,27 +434,21 @@ V4: / -sec=krb5:krb5i:krb5p -network 131.104.48 -mask 255.255.255.0 V4: / -sec=sys:krb5:krb5i:krb5p grumpy.cis.uoguelph.ca .Ed .Pp -Given that -.Pa /usr , /u , /a -and -.Pa /u2 -are -local file system mount points, the above example specifies the following: -.Pp -The file system rooted at +The file systems rooted at .Pa /usr -is exported to hosts -.Em friends -where friends is specified in the netgroup file +and +.Pa /usr/local +are exported to hosts within the +.Dq friends +network group with users mapped to their remote credentials and root mapped to UID 0 and group 10. -It is exported read-write and the hosts in -.Dq friends -can mount either +They are exported read-write and the hosts in +.Dq friends . +.Pp +The file system rooted at .Pa /usr -or -.Pa /usr/local . -It is exported to +is exported to .Em 131.104.48.16 and .Em grumpy.cis.uoguelph.ca @@ -590,12 +591,21 @@ afterwards, whereas NFSv3 rejects the mount request. .Xr rpc.tlsservd 8 , .Xr showmount 8 .Sh STANDARDS -The implementation is based on the specification in +The implementation is based on the following documents: +.Bl -dash +.It .Rs .%T "Network File System Protocol Specification, Appendix A, RFC 1094" +.Re +.It +.Rs .%T "NFS: Network File System Version 3, Appendix I, RFC 1813" +.Re +.It +.Rs .%T "Towards Remote Procedure Call Encryption By Default, RFC nnnn" .Re +.El .Sh BUGS The export options are tied to the local mount points in the kernel and must be non-contradictory for any exported subdirectory of the local