prctl.2: PR_SET_MM_EXE_FILE may now be used as many times as desired

The original implementation of PR_SET_MM_EXE_FILE only allowed it
to be used once in a process's lifetime. This restriction was
lifted in Linux commit 3fb4afd9a504c2386b8435028d43283216bf588e
("prctl: remove one-shot limitation for changing exe link").

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Benjamin Peterson 2018-11-04 18:21:47 -08:00 committed by Michael Kerrisk
parent d2eeb68f0b
commit 47bc9cec30
1 changed files with 4 additions and 5 deletions

View File

@ -646,11 +646,10 @@ memory area for the ELF
.IR \.text
section).
.IP
The second limitation is that such transitions can be done only once
in a process life time.
Any further attempts will be rejected.
This should help system administrators monitor unusual
symbolic-link transitions over all processes running on a system.
.\" commit 3fb4afd9a504c2386b8435028d43283216bf588e
Before Linux 4.9, the
.BR PR_SET_MM_EXE_FILE
operation could only be performed once in a process's lifetime.
.PP
The following options are available since Linux 3.18.
.\" commit f606b77f1a9e362451aca8f81d8f36a3a112139e