From nobody Thu Jan 16 18:08:23 2025 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 4YYrT35Vx7z5kktp; Thu, 16 Jan 2025 18:08:23 +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 4YYrT31hxmz3RkY; Thu, 16 Jan 2025 18:08:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737050903; 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=89qv+IAs8kR1jlKRLCHNB2e07QZt3B4Q3hWC77H95ok=; b=RfwoFcyr6oQKOUOu9wjVf5fwRSvEigkvZxoagDk8qt3DkX8K2PTZ6sMnjR9TbuuCKox9Yx VH9diU2QHsYLPZqgwhPjQbi1JF2w5utXYvc4eDiHxSNEFZvXdRD/FpqBcZ2iJbmySyriOH iTjhpZYRdhjn6dHuvAyTJG0CMOK9vRZEoOhRzE7bJH8fHOTcw/FwUiHmXqBC5PTdFZlgab RNR74Az+0jDoUlnvgGR7LETmE0PkPzirAPNZvGQ1BhJa6JELg0/7b1bzQwBhh31cJu8s0Y er/bt3D1Qhm1wM8Kov0tWKv5ixbu8QlPCQgg5KQ5Geea+IdF+O5rbDyqTNWuHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737050903; 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=89qv+IAs8kR1jlKRLCHNB2e07QZt3B4Q3hWC77H95ok=; b=RQfkrft2V57yl2q7eg3dK+0ADjTQDiPawU5OV1eX5GYrAMWF/51gUe+KQZTZzJIY8Ca3rP YPlOUD22oGJLqtgOafVigiwYQqI+x0v5z4/vaTt+deixq4e9BQCscHVnjCrYqkN9r/5HLT bU+MUfnNwsqQvchDxuXn99tyPGL7bmFteRO0hSzeBEJfHkgXQ3mTXO+hiJrp2Cf0GI8BM7 6WONLwKRNPbuv/WkM18Ks/k9alFYOlxTD1+KA8pxIZIJzMIG3Pk7ZWpKhlF9DeLtQaH8Yz F+JICZV4T+8k62WOAxlWIzy64ndFhLGpCzRobJDuP8K6UmpOqn7D5sNAssvaqw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737050903; a=rsa-sha256; cv=none; b=aOfsGse3sy0varUh0WL0e3dMGGcPOWPnTmMJ4+kETdHAOhjk+6e+rmKRp4YKebLrT1C0vC LPVkPtfY3u+6pMU1Vmmfkvz6pukGEEfUKtl68kNwRMTV22vsg0xUnZticgRZuqs0U9CaHF bQk0y/q2h6XRXMo+uwXPjia/KUOzqKPUJTPv1qUSHeI/nP7qKhFhDYfQMtBtLIP6hP7SvW VHCFCAAca3bXdJ0to3cHQmF5d+C77JPCO4rqxGJR6P4+KBGUUv8cwRmyOVojM+unugaWF3 bNLT9lHh3lDqtx5ggcYTFIRaPXuDRqWyxNETwz+aRDZq7xNiSv68ByzSnJ/ukw== 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 4YYrT310srzk13; Thu, 16 Jan 2025 18:08:23 +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 50GI8NT3092163; Thu, 16 Jan 2025 18:08:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50GI8Nam092160; Thu, 16 Jan 2025 18:08:23 GMT (envelope-from git) Date: Thu, 16 Jan 2025 18:08:23 GMT Message-Id: <202501161808.50GI8Nam092160@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: b82144e708d6 - stable/14 - exports(5): -maproot, -mapall: Explain the fallback on no group 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/14 X-Git-Reftype: branch X-Git-Commit: b82144e708d6c302e70d609a301b99795674cf69 Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=b82144e708d6c302e70d609a301b99795674cf69 commit b82144e708d6c302e70d609a301b99795674cf69 Author: Olivier Certner AuthorDate: 2024-10-08 09:34:44 +0000 Commit: Olivier Certner CommitDate: 2025-01-16 18:06:57 +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 c3a6af5a9f0e..6c18e910c116 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 16, 2024 +.Dd October 08, 2024 .Dt EXPORTS 5 .Os .Sh NAME @@ -172,8 +172,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