From nobody Fri May 1 03:03:06 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 4g6G7j5fz1z6bc6n for ; Fri, 01 May 2026 03:03: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 4g6G7h5pVMz4Mch for ; Fri, 01 May 2026 03:03:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777604592; 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=Odg4DCr/myIB9oiCaV9IZ5uGZME+OhhJX2R2x/eG/fI=; b=mjdEVjiCQZ6ftHP7tqlMiDrt202CFOud12ZntQbMND7ud4vpR+CWkRLwdJZnFXryYP3ahp GANg0csVs/IGmMa63KbUMtZjYR/dB/qBW/yb/ct8HDY85Tiu1VAa/vBNiXe1b7YxrYsTiX GTWuYsE+b3j3IJ/cmGmhq3llSNe+NOk2PfSSjrAfbhAr5JeWO2JDbDljfNATpxI6MAhhnO v4sa7NK0Wq41oUjfcQ1r3xRb0X66dZBRgYr6Ore9Dc0x72dc1R2alxkyBQX/K+rTfenPyY aLNt/kyqNrPM9va0Jz4WLFGhIHO82c8Nhcq6oW6s10L13rzg1BguTfKrMEfctg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1777604592; a=rsa-sha256; cv=none; b=Z5m2qYLi5r39Giy6ujLwOaiJ0y1fhb4kXkH+omkJpuasmKHVUtT0AVukfC4mTulA8m1nXZ u9PsOCJFvKlZR+50fflLSjbcAZxubIQ8+gez9hxfMUJNMY6NseH1iXCPJg0/x1O7tnIpTT q1aoPR9S6mBYKibwya7iTzQoIKUu5BeMtx+qS8nxX4w0s7SCk7KAOv9cHVfnJfNnhDpSMp gl9BxZh48kQG+lmR7AzDnuynwiwpayL8dXGSgsBBJoDKbKqYc6onbtXuJ0fwrvfg9IMPz/ /P2Cg4hBvEKcrc4dq3H7DT5qCEDztddL/ejjaDm4Zi5w96TmFYGZHID04BFIBg== 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=1777604592; 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=Odg4DCr/myIB9oiCaV9IZ5uGZME+OhhJX2R2x/eG/fI=; b=nnkL8sw0/57XxYGxcHX9pjHBKAElIMb7gxCux2QSqBOtN7f8q9VrjkWOTrXw90P9hA2BEU C5Z1UJXhn/BtMi/dRBdKVlHFkmezVsF6ILV/tkZdY++FCeK7bVzdNrlgyklubXzP8kxSn7 bO7RD5G1eZj7Ca5D8goPAZfwMKtpCrV9fXVrjmLi7/X9J8+Q1nafO3Y0cqb2zLEn3AU7qL x01P1zhGSteabQ+sGXO9y+QuxDYYt2vQaj8lYi39DWB7UffxcTdFWqsbYmFLJaNiHhh5yM z/LIl8/v2vsNK+OwPA62tYRSdKbw0uV3epOBQ5Ygh0nLu5rQvQ2UEZru6iJEfA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g6G7h00DVzgVs for ; Fri, 01 May 2026 03:03:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 4443c by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 01 May 2026 03:03:06 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 9c18d55a768a - main - 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 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/main X-Git-Reftype: branch X-Git-Commit: 9c18d55a768a3e60ecaba1325e9a3e00a25dee26 Auto-Submitted: auto-generated Date: Fri, 01 May 2026 03:03:06 +0000 Message-Id: <69f417ea.4443c.3e1509f@gitrepo.freebsd.org> The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=9c18d55a768a3e60ecaba1325e9a3e00a25dee26 commit 9c18d55a768a3e60ecaba1325e9a3e00a25dee26 Author: Kyle Evans AuthorDate: 2026-05-01 03:02:55 +0000 Commit: Kyle Evans CommitDate: 2026-05-01 03:02:55 +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 Differential Revision: https://reviews.freebsd.org/D56704 --- 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