prctl.2: Add some further historical details on PR_SET_MM_EXE_FILE

Also some minor tweaks to Benjamin Peterson's patch.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-11-05 08:21:54 +01:00
parent 47bc9cec30
commit 642df17c43
1 changed files with 8 additions and 2 deletions

View File

@ -646,10 +646,16 @@ memory area for the ELF
.IR \.text
section).
.IP
In Linux 4.9 and earlier, the
.\" commit 3fb4afd9a504c2386b8435028d43283216bf588e
Before Linux 4.9, the
.BR PR_SET_MM_EXE_FILE
operation could only be performed once in a process's lifetime.
operation can be performed only once in a process's lifetime;
attempting to perform the operation a second time results in the error
.BR EPERM .
This restriction was enforced for security reasons that were subsequently
deemed specious,
and the restriction was removed in Linux 4.10 because some
user-space applications needed to perform this operation more than once.
.PP
The following options are available since Linux 3.18.
.\" commit f606b77f1a9e362451aca8f81d8f36a3a112139e