issetugid.2 (108028) | issetugid.2 (131504) |
---|---|
1.\" $OpenBSD: issetugid.2,v 1.7 1997/02/18 00:16:09 deraadt Exp $ 2.\" 3.\" Copyright (c) 1980, 1991, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 17 unchanged lines hidden (view full) --- 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" SUCH DAMAGE. 33.\" | 1.\" $OpenBSD: issetugid.2,v 1.7 1997/02/18 00:16:09 deraadt Exp $ 2.\" 3.\" Copyright (c) 1980, 1991, 1993 4.\" The Regents of the University of California. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: --- 17 unchanged lines hidden (view full) --- 26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" SUCH DAMAGE. 33.\" |
34.\" $FreeBSD: head/lib/libc/sys/issetugid.2 108028 2002-12-18 09:22:32Z ru $ | 34.\" $FreeBSD: head/lib/libc/sys/issetugid.2 131504 2004-07-02 23:52:20Z ru $ |
35.\" 36.Dd August 25, 1996 37.Dt ISSETUGID 2 38.Os 39.Sh NAME 40.Nm issetugid 41.Nd is current process tainted by uid or gid changes 42.Sh LIBRARY --- 27 unchanged lines hidden (view full) --- 70status is inherited by child processes as a result of the 71.Xr fork 2 72system call (or other library code that calls fork, such as 73.Xr popen 3 ) . 74.Pp 75It is assumed that a program that clears all privileges as it prepares 76to execute another will also reset the environment, hence the 77.Dq tainted | 35.\" 36.Dd August 25, 1996 37.Dt ISSETUGID 2 38.Os 39.Sh NAME 40.Nm issetugid 41.Nd is current process tainted by uid or gid changes 42.Sh LIBRARY --- 27 unchanged lines hidden (view full) --- 70status is inherited by child processes as a result of the 71.Xr fork 2 72system call (or other library code that calls fork, such as 73.Xr popen 3 ) . 74.Pp 75It is assumed that a program that clears all privileges as it prepares 76to execute another will also reset the environment, hence the 77.Dq tainted |
78status will not be passed on. This is important for programs such as | 78status will not be passed on. 79This is important for programs such as |
79.Xr su 1 80which begin setuid but need to be able to create an untainted process. 81.Sh ERRORS 82The 83.Fn issetugid 84system call is always successful, and no return value is reserved to 85indicate an error. 86.Sh SEE ALSO --- 15 unchanged lines hidden --- | 80.Xr su 1 81which begin setuid but need to be able to create an untainted process. 82.Sh ERRORS 83The 84.Fn issetugid 85system call is always successful, and no return value is reserved to 86indicate an error. 87.Sh SEE ALSO --- 15 unchanged lines hidden --- |