FreeBSD src
Go to file
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
bin compare return value from getopt against -1 rather than EOF, per the final 1997-03-29 04:34:07 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r24434, 1997-03-31 09:37:59 +00:00
eBones
etc Remove MAKEFLAGS example from /etc/make.conf... 1997-03-31 05:26:39 +00:00
games Use srandomdev() now 1997-03-30 23:33:29 +00:00
gnu Toast dummy lchown(), it's in libc now. 1997-03-31 12:56:00 +00:00
include Declare lchown().. 1997-03-31 12:52:52 +00:00
lib Create lchown() in libc and document it as a variation of chown(). 1997-03-31 12:37:35 +00:00
libexec Be a bit more careful about what port number we are using for the 1997-03-29 12:35:06 +00:00
lkm
release Catch this puppy up to RELENG_2_2 1997-03-29 06:44:57 +00:00
sbin compare return value from getopt against -1 rather than EOF, per the final 1997-03-31 05:11:47 +00:00
secure
share Remove ${MAKEFLAGS} on recommendation by Bruce, mainly because the reason 1997-03-31 05:30:16 +00:00
sys Implement code for an OpenBSD-style issetuigid(). 1997-03-31 15:13:33 +00:00
tools Add ac which check if the FreeBSD handbook is in sync with the committers list 1997-03-28 14:40:39 +00:00
usr.bin Small formatting change to interval() to align columns so that: 1997-03-31 09:36:59 +00:00
usr.sbin Activate the -h flag which tells chown/chgrp to work on the symlink itself 1997-03-31 13:03:49 +00:00
COPYRIGHT
Makefile
README

This is the top level of the FreeBSD source directory.  This file
was last revised on: $Id$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel.  Please see the top of the Makefile for more information on
the standard build targets and compile-time flags.

Building a kernel with config(8) is a somewhat more involved process,
documentation for which can be found at:
   http://www.freebsd.org/handbook/kernelconfig.html
And in the config(8) man page.

The sample kernel configuration files reside in the sys/i386/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file LINT contains entries for all possible devices, not
just those commonly used, and is meant more as a general reference
than an actual kernel configuration file (a kernel built from it
wouldn't even run).


Source Roadmap:
---------------
bin		System/User commands.

contrib		Packages contributed by 3rd parties.

eBones		Kerberos package - NOT FOR EXPORT!

etc		Template files for /etc

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

lib		System libraries.

libexec		System daemons.

lkm		Loadable Kernel Modules.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		DES and DES-related utilities - NOT FOR EXPORT!

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/handbook/synching.html