IPB
>  Man Pages > Unix > FreeBSD 6.2 > Section 2 > issetugid man page

issetugid man page

Section 2 - FreeBSD 6.2 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!


ISSETUGID(2)              FreeBSD System Calls Manual             ISSETUGID(2)


NAME

     issetugid -- is current process tainted by uid or gid changes


LIBRARY

     Standard C Library (libc, -lc)


SYNOPSIS

     #include <unistd.h>

     int
     issetugid(void);


DESCRIPTION

     The issetugid() system call returns 1 if the process environment or mem-
     ory address space is considered ``tainted'', and returns 0 otherwise.

     A process is tainted if it was created as a result of an execve(2) system
     call which had either of the setuid or setgid bits set (and extra privi-
     leges were given as a result) or if it has changed any of its real,
     effective or saved user or group ID's since it began execution.

     This system call exists so that library routines (eg: libc, libtermcap)
     can reliably determine if it is safe to use information that was obtained
     from the user, in particular the results from getenv(3) should be viewed
     with suspicion if it is used to control operation.

     A ``tainted'' status is inherited by child processes as a result of the
     fork(2) system call (or other library code that calls fork, such as
     popen(3)).

     It is assumed that a program that clears all privileges as it prepares to
     execute another will also reset the environment, hence the ``tainted''
     status will not be passed on.  This is important for programs such as
     su(1) which begin setuid but need to be able to create an untainted
     process.


ERRORS

     The issetugid() system call is always successful, and no return value is
     reserved to indicate an error.


SEE ALSO

     execve(2), fork(2), setegid(2), seteuid(2), setgid(2), setregid(2),
     setreuid(2), setuid(2)


HISTORY

     The issetugid() system call first appeared in OpenBSD 2.0 and was also
     implemented in FreeBSD 3.0.

FreeBSD 6.2                     August 25, 1996                    FreeBSD 6.2


Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Wed Sep 19 20:03:39 BST 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

sqlite3 man page (5327 hits)
(openSUSE 10.2)

svn man page (5200 hits)
(FreeBSD 6.2)

adv_cap_autoneg man page (4869 hits)
(Solaris 10 11_06)

CPAN man page (4604 hits)
(Suse Linux 10.1)

ssh man page (4341 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (2866 hits)
(Solaris 10 11_06)

netcat man page (2705 hits)
(Suse Linux 10.1)

pprosetup man page (2481 hits)
(Solaris 10 11_06)

startproc man page (2470 hits)
(Suse Linux 10.1)

signal man page (2401 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Ski Holidays :: Prototype PCB Etching :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum