aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2014-05-27 06:51:02 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-05-28 17:10:56 +0200
commitadab861a920d0307905801e172f93630c7ccc4ee (patch)
treeb9078ddcefb53ffae153d3deb186af4d53f088c7
parent83490231455f8d1a94b42094a33f6354817ca597 (diff)
downloadman-pages-adab861a920d0307905801e172f93630c7ccc4ee.tar.gz
execve.2: RLIMIT_NPROC is checked only if preceded by set*uid()
Reported-by: Vasiliy Kulikov <segoon@openwall.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/execve.25
1 files changed, 4 insertions, 1 deletions
diff --git a/man2/execve.2 b/man2/execve.2
index 945ee2565a..8eeabe6c93 100644
--- a/man2/execve.2
+++ b/man2/execve.2
@@ -603,7 +603,10 @@ but the kernel sets an internal flag, named
to note that the
.BR RLIMIT_NPROC
resource limit has been exceeded.
-If the resource limit is still exceeded at the time of a subsequent
+If the
+.BR PF_NPROC_EXCEEDED
+flag is set and the resource limit is still
+exceeded at the time of a subsequent
.BR execve ()
call, that call fails with the error
.BR EAGAIN .