From nobody Fri Oct 04 08:33:22 2024 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 4XKhdb2mFYz5Y8Ps; Fri, 04 Oct 2024 08:33: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 4XKhdb027jz46R6; Fri, 4 Oct 2024 08:33:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728030803; 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=bozT/+rNZrED3XaVUWZYPZtEGt/bXVjFD7Vu/KSmfhQ=; b=tNs5XoSaDzbM7wj1OCmEWfPtcozyBqCf/MQZzsAlgZZlaVwvNDbpnmXUx1lGB0ns6owR17 a3Vymhm0vkUp7upL5w0r+h5qp/hRr8oYhp6Ssc6KcGqLrp6nHwf7UmwjJuJKknxQJ/EKMs 85kJBauOGcahTRAfAhEqnv/zGO9CKi1rdZIKt1VjcRkGfnMyIhyhdCoz+Wu0yXDU+S8fXU aAbQxFedQn+iY9IKIIyY9XUdNKDnAqBrD7IQUZ8ZtFl7iKr2wDi+2wZxDTTuwpfoTHxQb2 jv9URGx4C/vppc9C5eGMcWcbmGx9/b4GrIfM29uOVieEVhS2GIz++9z7G6oNyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728030803; 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=bozT/+rNZrED3XaVUWZYPZtEGt/bXVjFD7Vu/KSmfhQ=; b=KmiQ248oyV6WqvQBX9r+1ih5+Wm1jljUm05DZbjfUlEDQUJH7n1FHqFK+A4IdRs8l62bVk +abC4F5NLORhDLDXmXJX6wWdYzFnVbllow7fvIeVswBTHVSff/TpkZSLz1iZ9qUvlp8Sxl j8IbcsuNSpKx+/JvUOHqZVnl+9/INvKsbb4p2T5h3/vCyKZR7IOMlcBgMPEgCwD5RGqpQ5 6RUNy8IsJZcj8SZ+diQH+0MAx9V3yNcX00PQW2MF/wY5IDh5Uhq3MbtQp1C/ATetDdRDaB 1Q1RLeYdk1NG0vdOXndvcKKdla45Z1N5hWE9iCSV2PXNd2p91Kr+MtkK7JDeDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728030803; a=rsa-sha256; cv=none; b=Tz0v9B5qzmdhLVd5itqc+v6AXqfJ+jtC4jpW7CERYUWpyOhgDhLjh5HMvD6oATUUZe/Y62 FbterCFJY9A6Y4gYe6Glf9OYTWkNMNqOTbIDcK+dLfdzWBCBrT8rNYjbSReu3lE0vQXnXo 0aAZTdPDE66bouVPWd3ekhd/CkOvnsm+SQjA1hVRjQBEcj/yuK9007yrYaxtqAS20BZrtR 5iuID4orppEM9zsHfWUqOaV7XBIvWrYiUmxhoQ35rjYMdeQckYG+2gTyJ3Gh/V7Cnz9GD0 d0d60YTSlRzmbPGuDq059oySEwQd/mDRqkX2ATrM5pcYZTCIsrrl37z4l80maA== 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 4XKhdZ6jYszRWt; Fri, 4 Oct 2024 08:33:22 +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 4948XMoN003321; Fri, 4 Oct 2024 08:33:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4948XMaH003318; Fri, 4 Oct 2024 08:33:22 GMT (envelope-from git) Date: Fri, 4 Oct 2024 08:33:22 GMT Message-Id: <202410040833.4948XMaH003318@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Piotrowski <0mp@FreeBSD.org> Subject: git: ca2d3fdff035 - stable/13 - extattr(9): Mention system namespace restrictions in a jail 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: 0mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: ca2d3fdff03597d9df4ff871170453cd76513e5c Auto-Submitted: auto-generated The branch stable/13 has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=ca2d3fdff03597d9df4ff871170453cd76513e5c commit ca2d3fdff03597d9df4ff871170453cd76513e5c Author: Dmitry Chagin AuthorDate: 2023-09-01 08:12:51 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-10-04 08:33:11 +0000 extattr(9): Mention system namespace restrictions in a jail Reported by: netchild Reviewed by: gbe Differential revision: https://reviews.freebsd.org/D41676 MFC after: 1 week (cherry picked from commit 315d7bbbb4e4b35d195a0a74ede229b1f64d42cc) --- share/man/man9/extattr.9 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/share/man/man9/extattr.9 b/share/man/man9/extattr.9 index 3a49746d1eb1..c765a55e9059 100644 --- a/share/man/man9/extattr.9 +++ b/share/man/man9/extattr.9 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd December 23, 1999 +.Dd September 1, 2023 .Dt EXTATTR 9 .Os .Sh NAME @@ -54,6 +54,10 @@ attribute data is protected according the normal discretionary and mandatory protections associated with the data in the file or directory; system attribute data is protected such that appropriate privilege is required to directly access or manipulate these attributes. +By default processes in a +.Xr jail 8 +can not access to the system attribute data unless allow.extattr +configuration parameter is specified. .Pp Reads of extended attribute data may return specific contiguous regions of the meta-data, in the style of @@ -77,6 +81,7 @@ Appropriate vnode extended attribute calls are: and .Xr VOP_SETEXTATTR 9 . .Sh SEE ALSO +.Xr jail 8 , .Xr VFS 9 , .Xr VFS_EXTATTRCTL 9 , .Xr VOP_GETEXTATTR 9 ,