From nobody Wed Jun 10 04:01:13 2026 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 4gZsX92L0Zz6gv8F for ; Wed, 10 Jun 2026 04:01:13 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gZsX90YGjz3w8b for ; Wed, 10 Jun 2026 04:01:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781064073; 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=Z8po+mgQdZR+TxkhJ3J11CspPwlDX7/cCkvKV7kKvgw=; b=Ls26iibkRXoMAKtJgwm+/ZZ+gTdKCKNfm2Hqf7vtP1LI6RRoeK5dzlmL29x+0LcPsx3eQ7 yIyRanJ2B0HPIkUua4zZ0uYiXziZGeqU6ntx2qjW/1/yYKjX1XEYT6BChWE4WHOnr6z7Q0 qrlIavemuTs66ijChK/LuV76RU+ZoW4A8DecreRTDVwAwbZX4yA+/nC9IBrcR3eqdITRA+ yu3NTd4OGTAl1FkeUuft56FhWZhXkAs657zpu5HR6mGSpd3xwOxft7GKtDEzJL3E/NtbZw sfqZLzNpOkQtRJWcb7J0y0po9hH/q8yb6bPdY3jjl9rOotsYE66OMrbukUt0OQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781064073; a=rsa-sha256; cv=none; b=yp0yWfsBEQ3i/uIm78IlXZx36B9/T2pbxfY2shQ+9sp2Rx+5Q6SMIvA6nijCTIWMwk+eEt TSx3h/JKpMfV3zoLU4ZKvQQeKedjyIt/5LO+iXW3S0uCOe9wXmfjveUwlutBErfHssLSPR kzq3lkxi+epBkGc3u32yr3wX7Zdm9oaRlJZv3XLkBhOP0ULtfFE362o4MilBEGO12zEtdE stBjG0EO3+oet0A/JDb9Bx3QtETnELJzhpJObOv9a2MJ2L9hiJTj2O6rZqx9WT/G6ykuZs iN+mu8S2HkIbZgRCi2GsdF6YXlnLmM5UWxcCyRH1ZX4YzzFiHCdpxNDAZcoYjQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781064073; 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=Z8po+mgQdZR+TxkhJ3J11CspPwlDX7/cCkvKV7kKvgw=; b=qyuNTMgepB7ypmRCfTy0YuWcCUQxfTyX5SdPKAvFsuotfP8KloPHwpgjr7EsiS19x5tFB0 xhsDEkEdoSFljFQlrqKmBPCMsttLUbnWowTtq7zi/2HtImVnzvQ8/yySm+H3NotryRd5OU r8wikQwER398OE0LvDWHm4ol4oyMRnGnn8AwjQumA7JPo7OpEzv+G16s7h9ywxnckz2t36 G7MuCIcHwDFHz1VULmB+dX/RHxEQCM0Xip7iQim9b6xuhzf8z5qB/pKXGEG/Sznd8hBIS8 9m/7UUcXtkfP4kZQC1Y5C0Tw3fqy7k6MhAkPNiGVtvyvdevA9etBZGC5YHu+Ww== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gZsX903LCz14MF for ; Wed, 10 Jun 2026 04:01:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 27493 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 10 Jun 2026 04:01:13 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: dc0cc22a8981 - stable/15 - fexecve(2): call out a scenario where you want !O_EXEC 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: dc0cc22a898198a21bd58109351d2c2b2ec5410f Auto-Submitted: auto-generated Date: Wed, 10 Jun 2026 04:01:13 +0000 Message-Id: <6a28e189.27493.430f9de9@gitrepo.freebsd.org> The branch stable/15 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=dc0cc22a898198a21bd58109351d2c2b2ec5410f commit dc0cc22a898198a21bd58109351d2c2b2ec5410f Author: Kyle Evans AuthorDate: 2026-05-01 03:02:55 +0000 Commit: Kyle Evans CommitDate: 2026-06-10 04:00:36 +0000 fexecve(2): call out a scenario where you want !O_EXEC We note a reason why you might need it, but there's an equally important reason you may need to omit it: interpreted programs. Add a note accordingly, along with the workaround configuration if there's reason you can't help it. PR: 294780 Reviewed by: Jan Bramkamp , kib (cherry picked from commit 9c18d55a768a3e60ecaba1325e9a3e00a25dee26) --- lib/libsys/execve.2 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/libsys/execve.2 b/lib/libsys/execve.2 index dc85b9321e48..5562e198239a 100644 --- a/lib/libsys/execve.2 +++ b/lib/libsys/execve.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd July 02, 2025 +.Dd April 29, 2026 .Dt EXECVE 2 .Os .Sh NAME @@ -232,6 +232,17 @@ is to use the .Dv O_EXEC flag when opening .Fa fd . +Opening without +.Dv O_EXEC +may be necessary in the case of executing an interpreted program, as the +interpreter will not be able to acquire a descriptor to the script for reading +without mounting +.Xr fdescfs 4 +on +.Pa /dev/fd +with the +.Cm nodup +option. Note that the file to be executed can not be open for writing. .Sh RETURN VALUES As the