Add text to note that setresuid() always modifies the file

system UID, and setresgid() likewise always modifies the
file system GID.
This commit is contained in:
Michael Kerrisk 2005-10-28 16:57:37 +00:00
parent 6e1ffb9817
commit bb40bc01bd
1 changed files with 8 additions and 1 deletions

View File

@ -51,10 +51,15 @@ saved set-user-ID to arbitrary values.
If one of the parameters equals \-1, the corresponding value is not changed.
Regardless of what changes are made to the real UID, effective UID,
and saved set-user-ID, the file system UID is always set to the same
value as the (possibly new) effective UID.
Completely analogously,
.BR setresgid ()
sets the real GID, effective GID, and saved set-group-ID
of the current process,
of the current process (and always modifies the file system GID
to be the same as the effective GID),
with the same restrictions for non-privileged processes.
.SH "RETURN VALUE"
@ -85,6 +90,8 @@ provided _GNU_SOURCE is defined.
.SH "SEE ALSO"
.BR getresuid (2),
.BR getuid (2),
.BR setfsuid (2),
.BR setfsgid (2),
.BR setreuid (2),
.BR setuid (2),
.BR capabilities (7)