From nobody Thu Dec 23 16:55:34 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 B050F18F7B26; Thu, 23 Dec 2021 16:55:34 +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 4JKbsy37ZNz3l90; Thu, 23 Dec 2021 16:55:34 +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 4B80713EF6; Thu, 23 Dec 2021 16:55:34 +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 1BNGtYXi064191; Thu, 23 Dec 2021 16:55:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BNGtYCO064190; Thu, 23 Dec 2021 16:55:34 GMT (envelope-from git) Date: Thu, 23 Dec 2021 16:55:34 GMT Message-Id: <202112231655.1BNGtYCO064190@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 5bc2e6e22774 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 5bc2e6e22774f4663c971a4b5b7eaf4cb9a2485e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640278534; 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=NXEXrxUWeGRUzhS+7UkV3oUxYXyJbPu1mCxFsuR3Xe0=; b=XkGgvrJ8XYZLlWUrAnpA5Q2xcN6Si4aWwFCCGcxwB4lcyIq+0sFompInXI1PGweApzLfHh yIta4fiDmnId04Ylkl86f4rogwtHnRIoUrYWMyvTeFwLMTsWVCLXEAgsL+VJAB8QcpJoko /qbHSxapji2Fdx8VR8HkkkJSxujjo/aRFd5ystBfmpfgblfmuY5BtWofmB6QWSJ7YbbMFE xBHFV0ggxANBN+hDEwPYtNcijp4NZsOFbSyIqc5k1r1W64xQtfaJsqy1qdBrbKmN5Se/w5 OFYd6/2wiuwzK9iQQeGxYpdt8jQRIlbLlcTGcB5ymWECI0N1E6VooTtsH9Z4ZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640278534; a=rsa-sha256; cv=none; b=NfaX+xDCc01BaZc9uvZL22rffd+IoY+/W9naf4JeMgY1DDNjWVwWPVu4Km9b9JlyIaAkcO TkGqP3VwIFwnKeeOLc/qSo58NDQJJpaIZwLm5adHRswEHNq4YFZ6x62RU961WJ/e29FTan B9KkQWIi6HHIfmDCK5Dv2864tA9wwbzLC7sFXkboFsyW8ZwB0MV0Tgq5XK49wWgylXYoUz kKYnLcIGst3bheOpvejIkirS37L3DYqWOlQXcKdlqSLa/YppJjnoVbV1Y1xQ1Eh+y/gZVO WM9OAjz1SpJAxOKS38a8JOztRc3Je14SOj2c2GLo38WNP+oZ+M780/4rjQ6Rhw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=5bc2e6e22774f4663c971a4b5b7eaf4cb9a2485e commit 5bc2e6e22774f4663c971a4b5b7eaf4cb9a2485e Author: Ed Maste AuthorDate: 2021-12-23 15:24:27 +0000 Commit: Ed Maste CommitDate: 2021-12-23 16:54:43 +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 --- 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