Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162637241
D56704.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
709 B
Referenced Files
None
Subscribers
None
D56704.diff
View Options
diff --git a/lib/libsys/execve.2 b/lib/libsys/execve.2
--- 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 @@
.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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 16, 7:20 AM (18 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32429709
Default Alt Text
D56704.diff (709 B)
Attached To
Mode
D56704: fexecve(2): call out a scenario where you want !O_EXEC
Attached
Detach File
Event Timeline
Log In to Comment