From nobody Fri Jan 17 12:27:12 2025 X-Original-To: dev-commits-src-branches@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 4YZJrx2qWhz5kvr9; Fri, 17 Jan 2025 12:27:13 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YZJrw5DD5z3Tdt; Fri, 17 Jan 2025 12:27:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737116832; 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=Kyq10yL/S77eivPu9v+urYg0oawq7rJbcwzZlU1OtDI=; b=Q9wMiA4kY9AKFPZ7Y6mbrtMTkX/rB6b9MfJ7dpw3b2mloDTpcQhH6sjmpZ688h/mzVrKXD XZQHCPw5rQCH46ZhyBI1yiGigwItHrxDGnNTVhl0kK7valA77JesRUApkWNFnWmfYyzLA8 6qKpS2FHjTSzbmnyW3yNOGbJB+8pekYwKOX3mDMifoFRqARWDxfpOSpIK4VKBZh4OkOzFj 6+x+ThyPcsBNX6wB5uoPiWfENLff9EBgAeIWPwvXHhxjUud1lSX0q9c3D9w24uVAhJboOk 2iOskzSGlH/fax4G/R05WiXMj3CzSzT0UPAURDIir9k3+osbO5f3tcDfu87R5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737116832; 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=Kyq10yL/S77eivPu9v+urYg0oawq7rJbcwzZlU1OtDI=; b=gZV0KRqZXMHzDvpEovZRLQez6jJ9falONSWVbMxa/8IKqwPUHo84w3uucbgCtJcpLavQz3 TKqsooW+90c3zIwlenq93WnCINh2dHN+fQQL/cOKVXqKuEd/AHbqIoaDfStjfRRWS7QurZ SKDKT8GyDKJ73kgOU3fM0YqBz/3mx5SDmyY9jnPE0OhFL39YQj1tOkolToYLPzt3PU77I3 oPb+NLOXOjHhoAjbHsUqwupvYSbgsgtPNk5a+lUExVzF2bdj3vgGcRo73dfQYop8IS1hcJ rXMTg23NV8r5iZQ87gfRV78aqQk7p+ZSvMfFI5VPm9KR5yiWZ7ABGD8CLEE5zg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737116832; a=rsa-sha256; cv=none; b=FdVSySmfLkBh8d8SeWKy/lL7IjvmSrfJ6CqIL+sez6vYfHUIbKS44dcUsTwudZ3MIiX/fO Vw3Aabsps4AsNgEI0nWQ6DZ2v53D/9Dv0qBWBHw3KIC3zmAGxoqk/VodIMlKn2+Ny8HACB CdH1dgLOkQ796q0MlNIUFhpUHnO5WcSYFsLxO0rTJ2C/eEJTdsaZBlUvXefsYlnWTTZQ+6 n+m6CWh3p3vPykd/i7Ngu6v8qdHbJDjTF6zRZy53FSjL7bhyxN1K6FQyfZ4Q43XP7EY3Tc xqE/lv36LIL+cEae82HotOt8bevI6gVyHVjXe20Eooi0d2K4OtOybaFxFayy4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YZJrw4mrZz3Bc; Fri, 17 Jan 2025 12:27:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50HCRCjW052432; Fri, 17 Jan 2025 12:27:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50HCRCh1052429; Fri, 17 Jan 2025 12:27:12 GMT (envelope-from git) Date: Fri, 17 Jan 2025 12:27:12 GMT Message-Id: <202501171227.50HCRCh1052429@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: 70d657d7380c - stable/13 - exports(5): -maproot, -mapall: Explain the fallback on no group List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 70d657d7380c1c5c056508d4c122e691ed104042 Auto-Submitted: auto-generated The branch stable/13 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=70d657d7380c1c5c056508d4c122e691ed104042 commit 70d657d7380c1c5c056508d4c122e691ed104042 Author: Olivier Certner AuthorDate: 2024-10-08 09:34:44 +0000 Commit: Olivier Certner CommitDate: 2025-01-17 12:24:51 +0000 exports(5): -maproot, -mapall: Explain the fallback on no group Reviewed by: rmacklem (older version) Approved by: markj (mentor) MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47012 (cherry picked from commit 2ef608de90629df37c29043afc638f8ff99ecfc4) --- usr.sbin/mountd/exports.5 | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/usr.sbin/mountd/exports.5 b/usr.sbin/mountd/exports.5 index d135184cd464..dfbc16c28639 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 April 7, 2024 +.Dd October 08, 2024 .Dt EXPORTS 5 .Os .Sh NAME @@ -142,8 +142,23 @@ The user string may be quoted, or use backslash escaping. The colon separated list is used to specify the precise credential to be used for remote access by root. The elements of the list may be either names or numbers. -Note that user: should be used to distinguish a credential containing -no groups from a complete credential for that user. +Note that +.Cm user: +should be used to specify a credential containing no groups, in which case the +established credential will use +.Ql nogroup , +else 65533 +.Pq Dv GID_NOGROUP , +as the fallback group +.Pq a credential object must have at least one group internally . +Using just +.Cm user +.Pq without colon at end +falls into the +.Sm off +.Fl maproot Li = Sy user +.Sm on +case described above. The group names may be quoted, or use backslash escaping. .Pp .Sm off