mirror of https://github.com/mkerrisk/man-pages
setresuid.2: Note user namespace requirements for CAP_SETUID
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
6f22721ecb
commit
fb03f4addc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue