diff options
author | 1996-10-15 09:56:00 +0000 | |
---|---|---|
committer | 1996-10-15 09:56:00 +0000 | |
commit | f1491846a27f4eb564051a03be6ba022469daa15 (patch) | |
tree | 46c9591828592b30b8f5f7850ce0bdf185971bba | |
parent | zlib need this (diff) | |
download | wireguard-openbsd-f1491846a27f4eb564051a03be6ba022469daa15.tar.xz wireguard-openbsd-f1491846a27f4eb564051a03be6ba022469daa15.zip |
more detailed info
-rw-r--r-- | lib/libc/sys/issetugid.2 | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/lib/libc/sys/issetugid.2 b/lib/libc/sys/issetugid.2 index f30144be73e..970fb13a339 100644 --- a/lib/libc/sys/issetugid.2 +++ b/lib/libc/sys/issetugid.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: issetugid.2,v 1.2 1996/10/01 03:03:40 etheisen Exp $ +.\" $OpenBSD: issetugid.2,v 1.3 1996/10/15 09:56:00 deraadt Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -49,8 +49,32 @@ the result of the last .Fn execve system call. Otherwise it returns 0. +.Pp +This system call exists so that library routines (inside libc, libtermlib, +or other libraries) can gaurantee safe behaviour when used inside +setuid or setgid programs. +Some library routines may not be passed sufficient information to know +if the current program was started setuid or setgid. +In particular, it is wise to use this call to determine if a +pathname returned from a +.Fn getenv +call may safely be used to +.Fn open +the specified file. +.Pp +.Fn issetugid +is unaffected by calls to +.Fn setuid +and other such calls. It is only controlled by +.Fn execve .Sh ERRORS The .Fn issetugid function is always successful, and no return value is reserved to indicate an error. +.Sh SEE ALSO +.Xr execve 2 , +.Xr setuid 2 , +.Xr seteuid 2, +.Xr setgid 2 , +.Xr setegid 2 |