mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Document the cases in which setreuid changes the saved-user-ID.
This commit is contained in:
parent
c6be5d415a
commit
5e0c0a9246
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72160
|
@ -56,6 +56,11 @@ Unprivileged users may change the real user
|
|||
ID to the effective user ID and vice-versa; only the super-user may
|
||||
make other changes.
|
||||
.Pp
|
||||
If the real user ID is changed (i.e.
|
||||
.Fa ruid
|
||||
is not -1) or the effective user ID is changed to something other than
|
||||
the real user ID, then the saved user ID will be set to the effective user ID.
|
||||
.Pp
|
||||
The
|
||||
.Fn setreuid
|
||||
function has been used to swap the real and effective user IDs
|
||||
|
|
Loading…
Reference in a new issue