From nobody Fri Oct 04 08:33:19 2024 X-Original-To: dev-commits-src-branches@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 4XKhdX0LYnz5Y8Kp; Fri, 04 Oct 2024 08:33:20 +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 4XKhdW6kXjz46Qb; Fri, 4 Oct 2024 08:33:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728030800; 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=Ohwn7d1RG4zvEXbE8/VyaqmsQ8R/sZvNluYpQ2z75iI=; b=gZKr0Y3BhgSbr+GyInJCuvQTEZjrf7zi502q0bcAkeR7Xo05X5nhSll5qk/aqUliMbXuiK 0YBistiI0MYWoE+uR3ABS/a+FYnNkhWj6d5uQ+D5Sg3LOfWD8zEC/KNxjXYbR8JQY5y4Kh edYA5tNXsGeEesIDxtmZg5Sk1P/jlQPlSZIO2Z+CV/xJsFsWWnrzX3rB2eWsu/f/lSuBnS UH9dkr4bvDQkxtcMrLMYZBG6NIHeRy0O8EkBxhP6dmCZ3Z3y2iNevGAaHeha40jiNnO+D3 HOYLiEHt+DPPRzObF7qp6HC7+HarFw+cd0e6U6qcIsOTV6HE9rXXiQA0QLzCwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728030799; 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=Ohwn7d1RG4zvEXbE8/VyaqmsQ8R/sZvNluYpQ2z75iI=; b=lLZXckrjKk0j3unMyHiQBUXYVi0QEk1iDZigZ99Fk7U6JGinSl33X2uUEPd3ZjxlQz98a5 6lsfMiyHOPbmEJnN6U36xAM+HWWwXrk+i2FpmvOZ0NFRujmBOW/BhI1g6TuFV7vmtT9UeU ZZ7LkHURHzia/3uDqT1LPJGa/99L2zxPlL1pbBD40xz3R991goTLEbCUcLxdZwJrmUHRo5 XO0FCx3Dc5FiAwzBOXyrUwxXZ05mZJFoc2VBzPli9WV4xDxWNFsgc6hYo4qcVX85xR6MYy 1RZX/6XUC5w5VJxw+S/MFl/bWNqbLnlEBijHFe/StiSzbE4THEvbDXAKOSGn6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728030799; a=rsa-sha256; cv=none; b=nybV5LSfgu/lVqoSRLzDzsmknUn4IJmFm+kDB8yiGVBDOyD+b8zTUC58FpvtCzndViKjly DgCcHf6FL33GRg7g/TB6Dn2zWnLrKYZmp42eG5RxsXS9nJl7/7CojCdZXeg4kXAZebS6OM 05NYQ6/Y0/4qJAkbvemuZjOLIdx3nzL+ZEZZ0HiHCIVc+leA/AH05JLGgRdfs/t42jHFEH NOLLlnJg+Aco10L+EhnNWyzguGq/yRJBwMBhIyiRX90NDmP43ZgfECDaPPfPYwWrqRnsk6 MqWJcoaurEnpUUMzCeXo6AlzpcNrRaNRt4zpfNcXDEUMb9hlu+s1KfhU6qBdQQ== 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 4XKhdW6D1nzS0f; Fri, 4 Oct 2024 08:33:19 +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 4948XJb4003120; Fri, 4 Oct 2024 08:33:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4948XJ1J003117; Fri, 4 Oct 2024 08:33:19 GMT (envelope-from git) Date: Fri, 4 Oct 2024 08:33:19 GMT Message-Id: <202410040833.4948XJ1J003117@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: 290a02913765 - stable/14 - extattr(9): Mention system namespace restrictions in a jail List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/14 X-Git-Reftype: branch X-Git-Commit: 290a029137657e5af0918c9546e6fc880d3ea867 Auto-Submitted: auto-generated The branch stable/14 has been updated by 0mp: URL: https://cgit.FreeBSD.org/src/commit/?id=290a029137657e5af0918c9546e6fc880d3ea867 commit 290a029137657e5af0918c9546e6fc880d3ea867 Author: Dmitry Chagin AuthorDate: 2023-09-01 08:12:51 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2024-10-04 08:33:05 +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 ,