From nobody Wed Jun 10 04:01:04 2026 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 4gZsX1061Gz6gv3W for ; Wed, 10 Jun 2026 04:01:05 +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 4gZsX03YLKz3w9L for ; Wed, 10 Jun 2026 04:01:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781064064; 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=nukpWKFxK4ULsvoA7u+X1PntHPu03EyGcCG9esIB9Jo=; b=PUEKrJ+v6aF16q+2t8EFW3noJv86r9gaMYsXUWsDuZfqIfP92aXK6N65Ns1WRSqYsWzMsf 9x/Gtt6+/l4GuKWGWyyLrx4W389l1uVkvaea4ivlf3sBhO0CyiQ9yteKBCROVq5tIlj3NN TGiHdN10PpHPMHDZDhsQAkkOCVcenshjevNKx4h1kO/IlLidRozgVIHNR+TMWRothm7Env ftojH0FX0Xt8SRZsmQjI48E78G26kFYMq2CcuoKno8W9mbp2Hf4douALx/2AJKAs1gKR9c OA/gmzwJhSO/cwVBm2qV1kxyLvHP/Rtes2BMQKZkIzOcHGgCIZhgfzA9xA6YJg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781064064; a=rsa-sha256; cv=none; b=WV4/kHudLbYgIXsasVkUp1IZQg+052t1VpnZpgSyVP2YDnsg45JdAYZJQzQOnrOYfR8gvV VaDpfM6iD0cORoRD1H7QbIls/iRIqQyBnkH0lsnvt0mXJCaZ5RaozlJ+NBvX7p1A1TafHF nO501bFjfFgijt3Lfjd2+4sf6dSfHsB48UStLIPhFmNY4NFco8Fk0tsSWzXuQ5fsTfNvVT QJ4UpPVBpn6EtsmbdzYiT1tXC3Ac7mUQYTXw4/CZ3B79CHHGfplBEDZmwuO2RTkHyVUO7l uknuj3lh9swHjq+UIbfkjCUEAnFoN9Qu1q6D0ylBwHqISyFSdSza8Reas52irw== 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=1781064064; 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=nukpWKFxK4ULsvoA7u+X1PntHPu03EyGcCG9esIB9Jo=; b=lazyOjURq8iRqSQOltzgSDIyhmvnxEAw+CLv7PGFukxAbGVCW0S6OrgUo3i+2MJwR7S+Tl hovtkJjso+A+MLsg2Ih/8tdWuGPHJZKZilKt4HI3hxscR8d7Vzrk/8fcaebfFELjWJBX18 V2LmjRio4imBaPAPZY6bEu8BPn985klPrQi3M4EC4YgJ9ylisX86+57CT6hGw/aYHjjU/y YWUbkZ9Nb7mgBl7lE1qLKdLKv7TbfC3IfLrhtgNNOIgobJ+jhfrKkEa7tKZ6YyRLakIson 2rcR5f2GOM2PjQDbtwLDuVh4f+8W9v+2i/HMBCqGfPShw5HxE5VExDxCSCFpsg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gZsX031Mlz1433 for ; Wed, 10 Jun 2026 04:01:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 26769 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 10 Jun 2026 04:01:04 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: 0de1f3a8aa7f - stable/14 - fexecve(2): call out a scenario where you want !O_EXEC 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 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/14 X-Git-Reftype: branch X-Git-Commit: 0de1f3a8aa7f5e99aa63bcd76dfa3fd7e017d295 Auto-Submitted: auto-generated Date: Wed, 10 Jun 2026 04:01:04 +0000 Message-Id: <6a28e180.26769.25413336@gitrepo.freebsd.org> The branch stable/14 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=0de1f3a8aa7f5e99aa63bcd76dfa3fd7e017d295 commit 0de1f3a8aa7f5e99aa63bcd76dfa3fd7e017d295 Author: Kyle Evans AuthorDate: 2026-05-01 03:02:55 +0000 Commit: Kyle Evans CommitDate: 2026-06-10 04:00:46 +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/libc/sys/execve.2 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/execve.2 b/lib/libc/sys/execve.2 index ca5dbd09beee..22ffa268b220 100644 --- a/lib/libc/sys/execve.2 +++ b/lib/libc/sys/execve.2 @@ -27,7 +27,7 @@ .\" .\" @(#)execve.2 8.5 (Berkeley) 6/1/94 .\" -.Dd January 26, 2022 +.Dd June 8, 2026 .Dt EXECVE 2 .Os .Sh NAME @@ -231,6 +231,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