mirror of https://github.com/mkerrisk/man-pages
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:
parent
800a8a4288
commit
4c4d30d82b
|
@ -465,8 +465,6 @@ but is otherwise compatible.
|
||||||
Set-user-ID and set-group-ID processes can not be
|
Set-user-ID and set-group-ID processes can not be
|
||||||
.BR ptrace (2)d.
|
.BR ptrace (2)d.
|
||||||
|
|
||||||
Linux ignores the set-user-ID and set-group-ID bits on scripts.
|
|
||||||
|
|
||||||
The result of mounting a filesystem
|
The result of mounting a filesystem
|
||||||
.I nosuid
|
.I nosuid
|
||||||
varies across Linux kernel versions:
|
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
|
some will just ignore the set-user-ID and set-group-ID bits and
|
||||||
.BR exec ()
|
.BR exec ()
|
||||||
successfully.
|
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,
|
On Linux,
|
||||||
.I argv
|
.I argv
|
||||||
and
|
and
|
||||||
|
@ -541,6 +516,32 @@ but the new image could not be completely built.
|
||||||
In such cases, the kernel kills the process with a
|
In such cases, the kernel kills the process with a
|
||||||
.BR SIGKILL
|
.BR SIGKILL
|
||||||
signal.
|
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
|
.SS Historical
|
||||||
With UNIX\ V6, the argument list of an
|
With UNIX\ V6, the argument list of an
|
||||||
.BR exec ()
|
.BR exec ()
|
||||||
|
|
Loading…
Reference in New Issue