From nobody Fri Oct 10 17:16:15 2025 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 4cjtgh15JDz6Bd0n; Fri, 10 Oct 2025 17:16:16 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cjtgh0b9zz3g7n; Fri, 10 Oct 2025 17:16:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760116576; 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=nX0ivO3Llo8Qo+EK4woK+qRdx5dsG8YlcVQbKVt8MU8=; b=njpFpf7UX3WZRwD/R61nfKyX9ikERlsEAEmXkpiIiee7Sb2EHyzrUbBITwDVBbQh5iwlQK MetVsGv+1ZCFIFyNxK1NzWvmZgqmqTOQnH6fa6h6sWquq+nWS4Nye6FWj70UnQaiNVlj16 0SYDlOMQ9Oxys7sU7HyOgx0T/wqS+IH9FoBGGia490dD65G9On23n8Ln+9qfB7CZZxNO3o BugcGfGZd2i5fqpKJBiG+POXl+HSSbiBfP2teunyGS66om5Fx4xxikRkA4k6gsYEMyYRcI aCMdpuSp7zNX5hI30sT4lWPmHraSZGFSBTawkyB/OenBNzzHd+p5+dbQz0QVuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760116576; 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=nX0ivO3Llo8Qo+EK4woK+qRdx5dsG8YlcVQbKVt8MU8=; b=YzE5JNR1Ps9sgWZlFI+nL2TPgzgOpqoA5au1oCLkOwIiOwGH93MHjJHlVv5gtnz/uLNBq/ BhumMO7ExF7Dtebvmg+Ok3D8YznFvRbRJw9CJWbAkcmRdFXbAA6bo97dWAGXEkHc3erS14 0/AFamtuwkDmUgKZFEbCtuT5AIglCDi3Kvm7vMqc4S0GlVrvfbY5VS8/NdIZ4KPkRJtNYy vtfuw3vmuQa6Log2f4Qzpi+72/yR8oNIk6Wk/ObR+my9uq6Cpgj6mLJlhBUrNAlUVF0+kx iiUAOeBUxoHDFArOWhEVaXU2xMllBuDZiGKiDx6etFtck67s0aIuTEzGAWMa/g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760116576; a=rsa-sha256; cv=none; b=vPGYr13ypZE7DmsKedbgLZuAzHKpfshGSTFWBYdZ+PTCifGQ9pmXS1wS6NdJlYijI6cffs 7gLiDtRoGU62quYgtHKJMBx4+Q7H5Vlu8Vqv1kXeDlFLqpQq2PIoBxo+ckd7uOXmULuaUL t4m2vPPOswEcIMSUAE+lfckER+DOy1CwoMzxEcbq6SeYGtp6WdfRHtJuq0I4z5TJ9Ryhw/ LNhUil+lLL1lGzRKebP9hOdCs0NSx5rYBy8m4cXtHKwwkGETdHGueSXyQECkSmJdrRdEJV R8IQr5Hu9V4Y2bmrXiQpmVPtoerVmPo6cY0Wp3Jjdy/EKK/KPWlluK7vhchzHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cjtgh00CTz1BN3; Fri, 10 Oct 2025 17:16:16 +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 59AHGF2S009078; Fri, 10 Oct 2025 17:16:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59AHGFU5009075; Fri, 10 Oct 2025 17:16:15 GMT (envelope-from git) Date: Fri, 10 Oct 2025 17:16:15 GMT Message-Id: <202510101716.59AHGFU5009075@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: 6e888a22743f - stable/14 - jail.2: Mention EPERM is returned on open directories 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: olce X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 6e888a22743f67d3b130dd0a9b9849bcee160d2f Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=6e888a22743f67d3b130dd0a9b9849bcee160d2f commit 6e888a22743f67d3b130dd0a9b9849bcee160d2f Author: Olivier Certner AuthorDate: 2025-09-01 09:31:23 +0000 Commit: Olivier Certner CommitDate: 2025-10-10 17:15:55 +0000 jail.2: Mention EPERM is returned on open directories The manual page does not directly mention this reason for getting EPERM, instead referring the reader to chroot(2). We have had some questions about it recently, in part due to a bug (fixed), and this case is not an obvious permission/problem, so let's be more explicit. PR: 280809 Reviewed by: jamie MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D52319 (cherry picked from commit ef2f36be8fce8cf7a62ce7d33ab1c4a181fac3e2) --- lib/libc/sys/jail.2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/jail.2 b/lib/libc/sys/jail.2 index 4bb4a6dde7d2..dd6107a7c201 100644 --- a/lib/libc/sys/jail.2 +++ b/lib/libc/sys/jail.2 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd February 19, 2021 +.Dd September 15, 2025 .Dt JAIL 2 .Os .Sh NAME @@ -379,6 +379,9 @@ and call .Xr chroot 2 internally, so they can fail for all the same reasons. +In particular, they return the +.Bq Er EPERM +error when the process to join a jail has open directories. Please consult the .Xr chroot 2 manual page for details.