execve.2: NOTES: Add a subheading and reorder paragraphs

(No content changes.)

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-05-15 14:58:48 +02:00
parent 800a8a4288
commit 4c4d30d82b
1 changed files with 26 additions and 25 deletions

View File

@ -465,8 +465,6 @@ but is otherwise compatible.
Set-user-ID and set-group-ID processes can not be
.BR ptrace (2)d.
Linux ignores the set-user-ID and set-group-ID bits on scripts.
The result of mounting a filesystem
.I nosuid
varies across Linux kernel versions:
@ -477,29 +475,6 @@ give the user powers she did not have already (and return
some will just ignore the set-user-ID and set-group-ID bits and
.BR exec ()
successfully.
A maximum line length of 127 characters is allowed for the first line in
a #! executable shell script.
The semantics of the
.I optional-arg
argument of an interpreter script vary across implementations.
On Linux, the entire string following the
.I interpreter
name is passed as a single argument to the interpreter,
and this string can include white space.
However, behavior differs on some other systems.
Some systems
.\" e.g., Solaris 8
use the first white space to terminate
.IR optional-arg .
On some systems,
.\" e.g., FreeBSD before 6.0, but not FreeBSD 6.0 onward
an interpreter script can have multiple arguments,
and white spaces in
.I optional-arg
are used to delimit the arguments.
On Linux,
.I argv
and
@ -541,6 +516,32 @@ but the new image could not be completely built.
In such cases, the kernel kills the process with a
.BR SIGKILL
signal.
.\"
.SS Interpreter scripts
A maximum line length of 127 characters is allowed for the first line in
a #! executable shell script.
The semantics of the
.I optional-arg
argument of an interpreter script vary across implementations.
On Linux, the entire string following the
.I interpreter
name is passed as a single argument to the interpreter,
and this string can include white space.
However, behavior differs on some other systems.
Some systems
.\" e.g., Solaris 8
use the first white space to terminate
.IR optional-arg .
On some systems,
.\" e.g., FreeBSD before 6.0, but not FreeBSD 6.0 onward
an interpreter script can have multiple arguments,
and white spaces in
.I optional-arg
are used to delimit the arguments.
Linux ignores the set-user-ID and set-group-ID bits on scripts.
.\"
.SS Historical
With UNIX\ V6, the argument list of an
.BR exec ()