From nobody Fri May 1 03:03:06 2026 X-Original-To: dev-commits-src-main@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 4g6G7Z5Xx1z6bcFS for ; Fri, 01 May 2026 03:03:06 +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 4g6G7Z4pgvz4MJ7 for ; Fri, 01 May 2026 03:03:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777604586; 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=qEhf1s3Qmj6AI1/3YVAK9oOpRV7ilJX8i5WyORUk+cHs/v390IAH0ykplxlSaArbxUzipm 8fXSEdmwCQ1ypa26q9cIqsALJf2+avAphPTd6FctnzbXkFG2uMvB1u1PjbZfDBYrmkeieF slpfaDBWkwwk+NViiL/uF81KI8kksBm40CNW//Tsid6W9FE4qG4w3pBg9SKPYxX1sY8xLM TAnxCVkN1kZD862tQzYZERIhlLz3/MJvEnyuSyPeL12oDCppXEwEp08+qTdVwCxDPAaebG 9DNj3oKo5+usWSwOkCIXCDaG4dgkU2gZ4QuI1UD9eL5NHR9HWUXeSqzSbZLPmA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1777604586; a=rsa-sha256; cv=none; b=g0PiXpBA5eokmsN7EAuOWaHTQGSN4UTi+jMQqDSBuHrrcsxGtBZjPGqqq57Si1eIc+N1Jl vklSrNO2nfW6Sq2qpJByCqqkl8Z6umb4sR4qET+kVl25uuTPsElvUbeFDxe28Yl1DJPRLg pQ75rLOMI8UaoKQzCTXslfyqMKf41CdqwkYrPKrG26TAR2RzddvzI+9Sdh1E69upYn/h1/ qWof0zVkjC4yEabUbeR0Q5z8GAzf6NzPirA/CK7Sdw8FtZnGP3qPqwrZFry1r6pvoKuoDx TTQALTRjBie9DPgzYtvr7oXoNxWiw7Du5kDAUqyscmgUkomXUS7neIvCv2PhOg== 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=1777604586; 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=JGuUHXUDGy0g/M758B/ES+Lr+CPUlt+o7eD7hkM/i8GDRfST5a2fxZGVOPSlYaWcK4V6mb QfG+Fy1EJYum2X0OcrutGni3msHPHYMUV9IJKu7GBB7umR1NSWfotcWL2PTHs2N9cBeC5O zCSwBtawWXZ7krq8oXgVjduYBB+sCHZQkBvLruu1DUlXM4bOi3CEbrHIVm3xPuM4PP7G+R kG0hplTAQo9tt2Ws0qlDxnctGCjviAO8u7ec7XtURrdYos5jfCXbFRKPRyBo+F6mRCkXT/ H0HfZzJGMbw74D65gNIm5ukCMVD1SirYwVvecpJ2a4Mma8vuqXie1sH7Mk4YSg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g6G7Z4G4rzgsm for ; Fri, 01 May 2026 03:03:06 +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 the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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