fexecve.3: 'fd' must be opened read-only and refer to a file that is executable

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2009-02-03 08:19:51 +13:00
parent 0f7552d2a8
commit afcfe2900a
1 changed files with 7 additions and 1 deletions

View File

@ -22,7 +22,7 @@
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.TH FEXECVE 3 2007-07-26 "Linux" "Linux Programmer's Manual"
.TH FEXECVE 3 2009-02-04 "Linux" "Linux Programmer's Manual"
.SH NAME
fexecve \- execute program specified via file descriptor
.SH SYNOPSIS
@ -40,6 +40,12 @@ with the difference that the file to be executed
is specified via a file descriptor,
.IR fd ,
rather than via a pathname.
The file descriptor
.I fd
must be opened read-only,
and the caller must have permission to execute the file that it refers to.
.\" POSIX.1-2008 specifies the O_EXEC flag for open as an alternative,
.\" but Linux doesn't support this flag yet.
.SH "RETURN VALUE"
A successful call to
.BR fexecve ()