From nobody Thu Dec 30 00:31:53 2021 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 AA169192EB32; Thu, 30 Dec 2021 00:31:53 +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 4JPTjj31Zzz4Rnk; Thu, 30 Dec 2021 00:31:53 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 47BC16F51; Thu, 30 Dec 2021 00:31:53 +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 1BU0Vraq006042; Thu, 30 Dec 2021 00:31:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BU0Vrr0006041; Thu, 30 Dec 2021 00:31:53 GMT (envelope-from git) Date: Thu, 30 Dec 2021 00:31:53 GMT Message-Id: <202112300031.1BU0Vrr0006041@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 8253e8833725 - stable/12 - getfh: clarify that it is a privileged operation 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 8253e8833725f82f3e48a02c4bb43548feeb8d00 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640824313; 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=fjRrr5N/0piuJTYAIJOGrRbFNlMLvTK8anNkoF2W03I=; b=fkU4Iodmi1ALN6L+Vbc0iWCWurK+eEPnyFv6OKDbIVvMLth02vvOnyeolrY1l6FF6TVPwG jtEp/4wUdUZ/iN/fKCD62ZQbWBJ1BMO1+/0z8W5eSNmpL1mYWfPQFBo/4byMbsTXTc3vQ4 3U6u/nF+UXpGm0kpADVZwydyf6e11Wz1DHskXucKxrIfnAhllk/OQS9TO6lG+t4xLYjx6K 0jFjitiYmL+kg8IYqHrh9SzaecNcgH3Gbrs+dybvHFXMOocOFUNH5MydJk+wIotpbWSpbp oQNhLIynGzm6sHNemtk1oRXD166/+SUjcJrIQSrTuEMEMbg414Q0ouBcjq3yLQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640824313; a=rsa-sha256; cv=none; b=B5PYy6DteNCdj+kIc9OuTdvVZ+w7ANcT/WltsQdjj/UIrfzZq62euyJ2BcprbnfkW2D1U6 LKQLBQlI0gXCgW8Ykv30UbqvYvK6GOCsegk1TKMDowpJw7VddrRpVXHdhKLmvEMfscXx3k CrAR6OA0I9ROmVNT5TRuDVvp+Hn98lnjCArjeCopFyQ4/a4oQtsdQFq6bYp9b5vJeY3dsP zgoHF8egcZbx0aqwPrshkiR1VFhTCk3gVazDEo+Ww8WbPMV6v/41bbOr4Wl9jKLxJ+MLgP 6GCLS/1KoptO4fTjKfnVNM9K/sRWhpQn1q+4TBOXccQD7+HwScWyecF1eATNmw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=8253e8833725f82f3e48a02c4bb43548feeb8d00 commit 8253e8833725f82f3e48a02c4bb43548feeb8d00 Author: Ed Maste AuthorDate: 2021-12-23 15:24:27 +0000 Commit: Ed Maste CommitDate: 2021-12-30 00:31:12 +0000 getfh: clarify that it is a privileged operation Reviewed by: kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33629 (cherry picked from commit 5bc2e6e22774f4663c971a4b5b7eaf4cb9a2485e) --- lib/libc/sys/getfh.2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/getfh.2 b/lib/libc/sys/getfh.2 index cd3d54f54d7f..e042839a00c4 100644 --- a/lib/libc/sys/getfh.2 +++ b/lib/libc/sys/getfh.2 @@ -29,7 +29,7 @@ .\" @(#)getfh.2 8.1 (Berkeley) 6/9/93 .\" $FreeBSD$ .\" -.Dd February 23, 2021 +.Dd December 23, 2021 .Dt GETFH 2 .Os .Sh NAME @@ -130,6 +130,7 @@ is called with an absolute it ignores the .Fa fd argument. +.Pp These system calls are restricted to the superuser. .Sh RETURN VALUES .Rv -std @@ -141,6 +142,8 @@ and system calls fail if one or more of the following are true: .Bl -tag -width Er +.It Bq Er EPERM +The caller does not have appropriate privilege to perform the operation. .It Bq Er ENOTDIR A component of the path prefix of .Fa path