freebsd-dev/sys
Peter Wemm b67cbc6548 Implement code for an OpenBSD-style issetuigid().
This is valueable for library code which needs to be able to find out
whether the current process is or *was* set[ug]id at some point in the
past, and may have a "tainted" execution environment.  This is especially
a problem with the trend to immediately revoke privs at startup and regain
them for critical sections.  One problem with this is that if a cracker
is able to compromise the program while it's still got a saved id, the
cracker can direct the program to regain the privs.  Another problem is
that the user may be able to affect the program in some other way (eg:
setting resolver host aliases) and the library code needs to know when it
should disable these sorts of features.

Reviewed by: ache
Inspired by: OpenBSD (but with a different implementation)
1997-03-31 15:13:33 +00:00
..
alpha Be consistant with the other syscall makefile's handling of the default 1997-03-29 11:17:26 +00:00
amd64 Changed the way that the exec image header is read to be filesystem- 1997-03-31 11:11:26 +00:00
compat/linux Don't include <sys/ioctl.h> in the kernel. Stage 3: include 1997-03-24 11:37:53 +00:00
compile
conf Sanitize APM a bit. Convert various #ifdef to id_flags instead. 1997-03-29 11:07:12 +00:00
ddb Added a setjmp() so that an initial pc that points to unmapped memory 1997-03-28 12:39:43 +00:00
dev Interim patch/kludge for keyboard lock-up when `kbdcontrol' tries to 1997-03-28 10:11:24 +00:00
fs Don't include <sys/ioctl.h> in the kernel. Stage 3: include 1997-03-24 11:37:53 +00:00
geom Don't include <sys/ioctl.h> in the kernel. Stage 1: don't include 1997-03-24 11:25:10 +00:00
gnu Don't include <sys/ioctl.h> in the kernel. Stage 1: don't include 1997-03-24 11:25:10 +00:00
i386 Changed the way that the exec image header is read to be filesystem- 1997-03-31 11:11:26 +00:00
isa Interim patch/kludge for keyboard lock-up when `kbdcontrol' tries to 1997-03-28 10:11:24 +00:00
isofs/cd9660 Don't include <sys/ioctl.h> in the kernel. Stage 1: don't include 1997-03-24 11:25:10 +00:00
kern Implement code for an OpenBSD-style issetuigid(). 1997-03-31 15:13:33 +00:00
libkern Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
miscfs Don't include <sys/ioctl.h> in the kernel. Stage 3: include 1997-03-24 11:37:53 +00:00
modules Revert $FreeBSD$ back to $Id$ 1997-02-22 12:49:29 +00:00
msdosfs Don't #include <sys/fcntl.h> in <sys/file.h> if KERNEL is defined. 1997-03-23 03:37:54 +00:00
net Don't include <sys/ioctl.h> in the kernel. Stage 6: include 1997-03-24 12:12:36 +00:00
netatalk Don't include <sys/ioctl.h> in the kernel. Stage 2: include 1997-03-24 11:33:46 +00:00
netinet Don't include <sys/ioctl.h> in the kernel. Stage 2: include 1997-03-24 11:33:46 +00:00
netipx Don't include <sys/ioctl.h> in the kernel. Stage 2: include 1997-03-24 11:33:46 +00:00
netkey This is the `netkey' kernel key-management service (the PF_KEY analogue 1996-06-14 17:22:18 +00:00
netns Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
nfs Removed #include of <ufs/ufs/dir.h>. Nfs no longer depends on any ufs 1997-03-29 12:40:20 +00:00
nfsclient Removed #include of <ufs/ufs/dir.h>. Nfs no longer depends on any ufs 1997-03-29 12:40:20 +00:00
nfsserver Removed #include of <ufs/ufs/dir.h>. Nfs no longer depends on any ufs 1997-03-29 12:40:20 +00:00
pc98 Changed the way that the exec image header is read to be filesystem- 1997-03-31 11:11:26 +00:00
pccard Argh, this time get the parentheses right. This hasn't been a good day for me. 1997-02-21 05:46:57 +00:00
pci Don't break the nice symmetry of these messages with undue '>' chars. 1997-03-28 18:40:24 +00:00
powerpc/include Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
rpc Revert $FreeBSD$ to $Id$ 1997-02-23 09:21:14 +00:00
scsi Don't include <sys/ioctl.h> in the kernel. Stage 1: don't include 1997-03-24 11:25:10 +00:00
sys Regenerate (added issetugid) 1997-03-31 14:55:05 +00:00
tools Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
ufs Treat symlinks as first class citizens with their own uid/gid rather than 1997-03-31 12:02:53 +00:00
vm Changed the way that the exec image header is read to be filesystem- 1997-03-31 11:11:26 +00:00
Makefile Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00