summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2001-02-08 12:43:33 +0000
committernectar <nectar@FreeBSD.org>2001-02-08 12:43:33 +0000
commita7ec51af6e09d44fd6782f5cb5c66f17a7b86003 (patch)
tree44f1e36e64fa72bad0e594d52518876789b6fa4c /lib/libc/sys
parent0ac7eb37179eff9c2a2a051d5d42477e6a58fe24 (diff)
downloadFreeBSD-src-a7ec51af6e09d44fd6782f5cb5c66f17a7b86003.zip
FreeBSD-src-a7ec51af6e09d44fd6782f5cb5c66f17a7b86003.tar.gz
Document the cases in which setreuid changes the saved-user-ID.
Diffstat (limited to 'lib/libc/sys')
-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 e230925..231c747 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
OpenPOWER on IntegriCloud