aboutsummaryrefslogtreecommitdiffstats
path: root/man2/setresuid.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-09-12 15:12:16 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-09-12 16:54:36 +0100
commitfb03f4addc3f55a54d3ee12a9871bb8fcc6d93c5 (patch)
tree8e78f38f52c38da27c723a4f29668e4a6b5ca921 /man2/setresuid.2
parent6f22721ecb5b7e8fc53a5888744c6105e7a32c9c (diff)
downloadman-pages-fb03f4addc3f55a54d3ee12a9871bb8fcc6d93c5.tar.gz
setresuid.2: Note user namespace requirements for CAP_SETUID
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/setresuid.2')
-rw-r--r--man2/setresuid.213
1 files changed, 11 insertions, 2 deletions
diff --git a/man2/setresuid.2 b/man2/setresuid.2
index b54c140b24..bc422b41c9 100644
--- a/man2/setresuid.2
+++ b/man2/setresuid.2
@@ -102,8 +102,17 @@ One or more of the target user or group IDs
is not valid in this user namespace.
.TP
.B EPERM
-The calling process is not privileged (did not have the \fBCAP_SETUID\fP
-capability) and tried to change the IDs to values that are not permitted.
+The calling process is not privileged (did not have the necessary
+capability in its user namespace)
+and tried to change the IDs to values that are not permitted.
+For
+.BR setresuid (),
+the necessary capability is
+.BR CAP_SETUID ;
+for
+.BR setresgid (),
+it is
+.BR CAP_SETGID .
.SH VERSIONS
These calls are available under Linux since Linux 2.1.44.
.SH CONFORMING TO