summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1996-09-03 11:32:01 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1996-09-03 11:32:01 +0000
commit98d71381004a4394cbb5171e8b558830ef56d3c0 (patch)
treea2cf102428af66a9d484580056f9db956055c263 /lib/libc
parent80396a110a25daec7ec0a61a4d84e2f541a2501d (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/setuid.224
1 files changed, 19 insertions, 5 deletions
diff --git a/lib/libc/sys/setuid.2 b/lib/libc/sys/setuid.2
index 519a93722312..9ea326e0f2be 100644
--- a/lib/libc/sys/setuid.2
+++ b/lib/libc/sys/setuid.2
@@ -30,7 +30,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)setuid.2 8.1 (Berkeley) 6/4/93
-.\" $Id: setuid.2,v 1.2 1996/08/29 21:24:16 wosch Exp $
+.\" $Id: setuid.2,v 1.3 1996/09/01 22:42:13 ache Exp $
.\"
.Dd June 4, 1993
.Dt SETUID 2
@@ -59,8 +59,15 @@ function
sets the real and effective
user IDs and the saved set-user-ID of the current process
to the specified value.
-.\" Comment out next line for !_POSIX_SAVED_IDS
-The real user ID and the saved set-user-ID are changed only if the effective user ID is that of the super user.
+.\" Comment out next block for !_POSIX_SAVED_IDS
+The real user ID and the saved set-user-ID are changed only if the
+effective user ID is that of the super user.
+I.e.
+.Fn setuid
+function is equal to
+.Fn seteuid
+function if the effective user ID is not that of the super user.
+.\" End of block
The
.Fn setuid
function is permitted if the specified ID is equal to the real user ID
@@ -74,8 +81,15 @@ function
sets the real and effective
group IDs and the saved set-group-ID of the current process
to the specified value.
-.\" Comment out next line for !_POSIX_SAVED_IDS
-The real group ID and the saved set-group-ID are changed only if the effective user ID is that of the super user.
+.\" Comment out next block for !_POSIX_SAVED_IDS
+The real group ID and the saved set-group-ID are changed only if the
+effective user ID is that of the super user.
+I.e.
+.Fn setgid
+function is equal to
+.Fn setegid
+function if the effective user ID is not that of the super user.
+.\" End of block
The
.Fn setgid
function is permitted if the specified ID is equal to the real group ID