diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1996-09-01 22:42:13 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1996-09-01 22:42:13 +0000 |
commit | 64839956f60238e346c67092002a502a8265d47b (patch) | |
tree | 17efba0574ae2e4814ca360519046157cf912e2a /lib/libc/sys/setuid.2 | |
parent | 3f246666490cbfb6b7cb3307a19c5200e20f304c (diff) |
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.
Notes
Notes:
svn path=/head/; revision=17995
Diffstat (limited to 'lib/libc/sys/setuid.2')
-rw-r--r-- | lib/libc/sys/setuid.2 | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/libc/sys/setuid.2 b/lib/libc/sys/setuid.2 index 8c52f5dc7e05..519a93722312 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 |