setresuid.2: Note user namespace requirements for CAP_SETUID

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-09-12 15:12:16 +01:00
parent 6f22721ecb
commit fb03f4addc
1 changed files with 11 additions and 2 deletions

View File

@ -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