aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/setreuid.2
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2001-02-08 12:43:33 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2001-02-08 12:43:33 +0000
commit5e0c0a9246bb7b144fb7105d1164e4bf4618ccb0 (patch)
treefe4887db1feb187aeafca02915e60c0f272c4211 /lib/libc/sys/setreuid.2
parentc6be5d415a6a4676a6e154232b3b06875b2bd1c7 (diff)
downloadsrc-5e0c0a9246bb7b144fb7105d1164e4bf4618ccb0.tar.gz
src-5e0c0a9246bb7b144fb7105d1164e4bf4618ccb0.zip
Document the cases in which setreuid changes the saved-user-ID.
Notes
Notes: svn path=/head/; revision=72160
Diffstat (limited to 'lib/libc/sys/setreuid.2')
-rw-r--r--lib/libc/sys/setreuid.25
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/sys/setreuid.2 b/lib/libc/sys/setreuid.2
index e2309257dc0d..231c747f982e 100644
--- a/lib/libc/sys/setreuid.2
+++ b/lib/libc/sys/setreuid.2
@@ -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