aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-06-26 20:36:33 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-09-12 14:04:45 +0100
commit32dbbd64167f908392c1ce51fef5310c36d882e0 (patch)
tree40ba66148bc98396b678673cf467b2eb3722c784
parente31d1beb762a274c8cc06f2edeebb708f9439a8f (diff)
downloadman-pages-32dbbd64167f908392c1ce51fef5310c36d882e0.tar.gz
getrlimit.2: Note user namespace semantics for CAP_SYS_RESOURCE
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/getrlimit.23
1 files changed, 2 insertions, 1 deletions
diff --git a/man2/getrlimit.2 b/man2/getrlimit.2
index 645b445082..a7a45d2d7a 100644
--- a/man2/getrlimit.2
+++ b/man2/getrlimit.2
@@ -449,7 +449,8 @@ is 0, then the call applies to the calling process.
To set or get the resources of a process other than itself,
the caller must have the
.B CAP_SYS_RESOURCE
-capability, or the
+capability in the user namespace of the process
+whose resource limits are being changed, or the
real, effective, and saved set user IDs of the target process
must match the real user ID of the caller
.I and