From nobody Thu Sep 18 08:52:09 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 4cS8XB66gSz6827J; Thu, 18 Sep 2025 08:52:10 +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 4cS8XB2Ngxz3jSm; Thu, 18 Sep 2025 08:52:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758185530; 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=GMDHZmIWFkdR6xPMffYXRZebAn2MagcHagJNwwyoPTE=; b=PfDMg5K9MhgAmIzyCbC7aS0knDlGHMZGZ2TcUoxU5ePRS0XQeXV/SXP0S8kpMGxcjH3LKY FyxzlDJbxa8Q/GddJFravaaV/WKn4zPX9zDHBKzivjpahiEwyWy/+9oiXK8UmSA5HSL1yx adT+KCaNqQ0Ba2yFDT9twJrdiLeQ0lAovkizwJnFIGyQosW20GPaxnNqF1vbtwKQa6wD6D 6aSRi0YW8+wRGt3HUq5pSn8/z4HYqWrcasoRFpQWlrjVNcnl/6tcQWgS9T41mI9mW28oSg IqqgUIQJh2EEr/TvGiUSldDgjC+OLSdUjE0gJqhGr3sqoK0edNKAZ3EDBlWvug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758185530; 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=GMDHZmIWFkdR6xPMffYXRZebAn2MagcHagJNwwyoPTE=; b=nhna+OnVFc9pk3OvNw3rUejOWjlZy9F+4ZBOreuoTkObWTrTZTFL/loU8h8oddQD0xpPgu Khg9tP6bMR/mVGJiAgMQ86RwXh42LldKP/ZtTmqBU/qWIRVe7+lrx4kP2FzL0crFGZvgGN aJ5H7X41RXPbY/Bxs6rzO2YD3kGlEFzicrW3RdRw3CllTMGbYm540l8NhWcSrSuJ3H0MCc nd21Dm5rpyZaCc7cPQBipO1DbYpirEycI18Qn06sCy2iONzVCNA7iJ5mmw+TLxo22cJh9u o8MQMaw5OtY8m3IxoWPpcgXoqPOp5MLwRfaqN2bE79YM5Wc8lEFg7G3k0lQNzQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758185530; a=rsa-sha256; cv=none; b=EZ/QUvjMOHwrNjfVoMHqzSXN1bkF2DaJFKAMvg2OPBCKW4IrdpTNAryBzEYphzMjoZ3cuL BRavNDVYzutNr3PefAO5/0GCmfZmmGxpoYrvWIgZmWjlG6yFmipsQ4gKz3MVN0cFHrFXbB pogNAOPnQwJ0gigrz46gjZ277oTV9bSX4/K9A6XFQRttytxXJ8dkuuxkWDbXb0ixLcazBx ednfF4dOhZ3EpAPJsx8YbA5jw7meFeam9HEZbOyOnYG9j99/22/JdrmLy2DoFP3frgj1uN wJuAnDjZLI11woeFF2PIWm40BXb5wRAGG0U4D5xCPAqN8acbb5+DF2G9BYtf7Q== 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 4cS8X96Q4lz1481; Thu, 18 Sep 2025 08:52:09 +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 58I8q9Bl019031; Thu, 18 Sep 2025 08:52:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58I8q9ln019028; Thu, 18 Sep 2025 08:52:09 GMT (envelope-from git) Date: Thu, 18 Sep 2025 08:52:09 GMT Message-Id: <202509180852.58I8q9ln019028@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: 7140f620a569 - stable/15 - 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/15 X-Git-Reftype: branch X-Git-Commit: 7140f620a5695b023e76e482dab50133479f0a0b Auto-Submitted: auto-generated The branch stable/15 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=7140f620a5695b023e76e482dab50133479f0a0b commit 7140f620a5695b023e76e482dab50133479f0a0b Author: Olivier Certner AuthorDate: 2025-09-01 09:31:23 +0000 Commit: Olivier Certner CommitDate: 2025-09-18 08:50:31 +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/libsys/jail.2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libsys/jail.2 b/lib/libsys/jail.2 index d3f871608c1d..ee4e5b03d38e 100644 --- a/lib/libsys/jail.2 +++ b/lib/libsys/jail.2 @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd September 9, 2025 +.Dd September 15, 2025 .Dt JAIL 2 .Os .Sh NAME @@ -555,6 +555,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.