mirror of https://github.com/mkerrisk/man-pages
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:
parent
6e1ffb9817
commit
bb40bc01bd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue