From nobody Tue Aug 16 13:07:32 2022 X-Original-To: dev-commits-src-main@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 4M6Wdw732Pz4Z4J8; Tue, 16 Aug 2022 13:07:32 +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 4M6Wdw6TKqz4N6H; Tue, 16 Aug 2022 13:07:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660655252; 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=apRtJLykSw0TbevbhxA4wcOEckI+9cXHdBOZ9bEzwiQ=; b=H9Fcga7PQIeif1roi6/yRSTm/o0/qOMQJQ9yeb8S2xaVM8Cc0bld9d2sSHpmL/Ni7rXhnP ucKMggFLu9P7pNLnZv2KgA0yy1e9HOTUXRWei7cX4+C2ExhxFREy4D1J9boNvPncgOG51L 7vsPk8A0Tw9PtU03ELmF+LKIY+uo5YuQ0rIy6NYT6CwtjvDM7VuI8/JoFygf2bcAbUQQIC jVPYdsUTG0Sppd52VR92QC38d0cadgJwkp1rOu/bEgSU2z7eMzyR3HVIJbyYgNDYrR8U1z wzKVIb1KBjSQJD3sLg/daUDqiSz8ebICUx5Td3MjaVv7ycwB+LuArGIOBZWpOQ== 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 4M6Wdw5Gz8z18pK; Tue, 16 Aug 2022 13:07:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27GD7Ww7077779; Tue, 16 Aug 2022 13:07:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27GD7WWq077778; Tue, 16 Aug 2022 13:07:32 GMT (envelope-from git) Date: Tue, 16 Aug 2022 13:07:32 GMT Message-Id: <202208161307.27GD7WWq077778@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: f9572577cf5f - main - exports.5: Clean up EXAMPLES and STANDARDS List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: f9572577cf5f28d8e7592b4f1fb24c54e8e79783 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660655252; 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=apRtJLykSw0TbevbhxA4wcOEckI+9cXHdBOZ9bEzwiQ=; b=eYTBCYxHOkPWQnDsSY6htnpQXLPckk005BAvA6jQRse0VpKrmwvwTImJJwSeQA7NyKF3iB FqV8oB/u7j7V/AtRq/BTnssC0XE+JvgyvfNO8+Rr0YQOGpc4ZT56HGI3Vq/Vosh/IwevDX tmzn/FeQUxgNNgFI83wCMNC+jNkUBIo7jy8cdre2glnzYhc1idSp8XkvFVhDlscQdEmXYi 9n25Fk3BWwJlsxYi5subIZ8qr+5WbEqmp/XmjilBdY/XPxzpyRt35qQi1M38HK7ZDNOl3i 5RCn/roCAJYTxQ568VbqipDqCfxwtAzY7LWwOOzSOY/kOjq91RKk7qDh+b/7hg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660655252; a=rsa-sha256; cv=none; b=pPdIyw48lHCXXjs2LAkgMJDvVzEcIwZO+CAAMbJDSaXrILjmDYlJplrULt4fMRJADUMbtU 4mLHURBcZexvTsyrHwtDCbP+GQKfPmDByyqYsL/y43x6dJfuewvT7YRr0SHfuaH3yj3j+z 6sFWWtLcOcOHgcoLueC27giyW+y7USXYWzn3n2DnFjuIccjB4Wyl1whqqROp5IqPHsoKIL KvqHOM5pK14LB3uNy4jP/FQuzFw6nwP1OcGSKrrn73UqwNIK2r1XbElZr6DZSinPC5vxrL LPKTD1/ystj6L3DzE8D4DJyJCbEwMAzV2LqxArufL4H9jvKga/nnai4vykv+MQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by 0mp (doc, ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=f9572577cf5f28d8e7592b4f1fb24c54e8e79783 commit f9572577cf5f28d8e7592b4f1fb24c54e8e79783 Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2022-08-16 13:03:20 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2022-08-16 13:04:44 +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. --- 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 d5aa49a1f428..642a8e4ba04b 100644 --- a/usr.sbin/mountd/exports.5 +++ b/usr.sbin/mountd/exports.5 @@ -28,7 +28,7 @@ .\" @(#)exports.5 8.3 (Berkeley) 3/29/95 .\" $FreeBSD$ .\" -.Dd November 9, 2021 +.Dd August 16, 2022 .Dt EXPORTS 5 .Os .Sh NAME @@ -412,6 +412,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 @@ -428,27 +435,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 @@ -591,12 +592,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