summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/setregid.2
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-06-05 04:35:42 +0000
committerimp <imp@FreeBSD.org>2001-06-05 04:35:42 +0000
commiteea71e362da437b89833f1530a37350a10eb7fdd (patch)
treec4a77fdf069456f148124cc585677cca2c93303e /lib/libc/sys/setregid.2
parentb1345499d025833800340932342b19dd1743a9aa (diff)
downloadFreeBSD-src-eea71e362da437b89833f1530a37350a10eb7fdd.zip
FreeBSD-src-eea71e362da437b89833f1530a37350a10eb7fdd.tar.gz
Document what happens when the real id is changed.
I may have obtained this from NetBSD, but I don't recall. I do know that I checked FreeBSD's implementation to make sure that it matched what I wrote.
Diffstat (limited to 'lib/libc/sys/setregid.2')
-rw-r--r--lib/libc/sys/setregid.23
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/sys/setregid.2 b/lib/libc/sys/setregid.2
index 9fcb1d1..f796856 100644
--- a/lib/libc/sys/setregid.2
+++ b/lib/libc/sys/setregid.2
@@ -47,6 +47,9 @@
.Sh DESCRIPTION
The real and effective group ID's of the current process
are set to the arguments.
+If the real group ID is changed, the saved group ID is changed to the
+new value of the effective group ID.
+.Pp
Unprivileged users may change the real group
ID to the effective group ID and vice-versa; only the super-user may
make other changes.
OpenPOWER on IntegriCloud