From nobody Thu Dec 30 00:31:06 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 37254192E739; Thu, 30 Dec 2021 00:31:07 +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 4JPThp6ySGz4Qwm; Thu, 30 Dec 2021 00:31:06 +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 CF0256A52; Thu, 30 Dec 2021 00:31:06 +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 1BU0V60D005050; Thu, 30 Dec 2021 00:31:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BU0V698005049; Thu, 30 Dec 2021 00:31:06 GMT (envelope-from git) Date: Thu, 30 Dec 2021 00:31:06 GMT Message-Id: <202112300031.1BU0V698005049@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: c56c2f0fe29c - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: c56c2f0fe29c91f40a3eab56c92edd9ebc211df5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640824267; 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=iJsOzK9XYhxfXbhcjkf8P9zzZHwOhHhyl4ycyCXcTLs=; b=ndKFvmH6gYRAuU6dUpbg4Muz+Q/Po0V5onU//3ppqW+0vyb4oTsGFmKaPg+lLVtU8twDSs gmOdtenXQuImlA4UyGZQnD43sXMOh/AvUQXOZ7/XWRvR3h2bqexdUVhDuojHi2UZHLm1La vk+R5aQlOFjq/5qfMerLNYZ6evfcJtGLjmzq2FigwnICi7GYSh6ttBT9O6hErxANVAks9M VzRodCg2vjp4tdX4V54dykTtaZfz2BicZ5e24ozRoH+XOJhg61i5gqQPf3nn6OzB1t9gBZ d+LrjcuL8bVLmkVKntzags3sOKJP08kcno1huotsWlXfymBb/QJdVUC6yzuaZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640824267; a=rsa-sha256; cv=none; b=OtzmWxDh/GDLuo9iVlnJ7KUa3PnMEiVN9IT7mse/Sxudia0n6wlwbPMmivBbuxVGc2oz6g CTlMSl3s+4GsrmuDsqz4uQShTTh59vIaA1dCEEuNx7mjufEoeZMaqgQIvSYKmgsbdSItXW w1xA/PDNAcGHHLZBOx4GN/npNUu6db7zmB6Dj+v228WtaIHe4S1Cu6kEXmQXDeTGdJ1AeA GQ2cjcaYuXWkNQ9lJtOwc5FsghOeQU/10eBUy5P5AoycXQc4J2rOeMSlG6vozsp1CAzFwx V7dikrgWRSm4NdSXKUBNz8FZhH5zpsmtPrrGqkIIFF7l8ndtMPhOgs4TncZY5g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=c56c2f0fe29c91f40a3eab56c92edd9ebc211df5 commit c56c2f0fe29c91f40a3eab56c92edd9ebc211df5 Author: Ed Maste AuthorDate: 2021-12-23 15:24:27 +0000 Commit: Ed Maste CommitDate: 2021-12-30 00:27:34 +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