summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/setuid.2
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-09-01 22:42:13 +0000
committerache <ache@FreeBSD.org>1996-09-01 22:42:13 +0000
commit987ecffcd02681875fef5969b237f80e88099d53 (patch)
tree17efba0574ae2e4814ca360519046157cf912e2a /lib/libc/sys/setuid.2
parent25bbbe6b234fbc7bcf9f13758d4ec5e7243a6acf (diff)
downloadFreeBSD-src-987ecffcd02681875fef5969b237f80e88099d53.zip
FreeBSD-src-987ecffcd02681875fef5969b237f80e88099d53.tar.gz
Describe current behaviour (_POSIX_SAVED_IDS are ON),
traditional BSD4.4 behavior (_POSIX_SAVED_IDS are OFF) was described before. Add some hooks to easily change this text when POSIX_SAVED_IDS model will be changed.
Diffstat (limited to 'lib/libc/sys/setuid.2')
-rw-r--r--lib/libc/sys/setuid.214
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libc/sys/setuid.2 b/lib/libc/sys/setuid.2
index 8c52f5d..519a937 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$
+.\" $Id: setuid.2,v 1.2 1996/08/29 21:24:16 wosch Exp $
.\"
.Dd June 4, 1993
.Dt SETUID 2
@@ -59,9 +59,13 @@ 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.
The
.Fn setuid
function is permitted if the specified ID is equal to the real user ID
+.\" Comment out next line for !_POSIX_SAVED_IDS
+or the saved set-user-ID
of the process, or if the effective user ID is that of the super user.
.Pp
The
@@ -70,9 +74,13 @@ 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.
The
.Fn setgid
function is permitted if the specified ID is equal to the real group ID
+.\" Comment out next line for !_POSIX_SAVED_IDS
+or the saved set-groupd-ID
of the process, or if the effective user ID is that of the super user.
.Pp
The
@@ -111,7 +119,9 @@ functions are compliant with the
.St -p1003.1-88
specification with
.Li _POSIX_SAVED_IDS
-not defined.
+.\" Uncomment next line for !_POSIX_SAVED_IDS
+.\" not
+defined.
The
.Fn seteuid
and
OpenPOWER on IntegriCloud