FreeBSD src
Go to file
Robert Watson eca8a663d4 Modify the MAC Framework so that instead of embedding a (struct label)
in various kernel objects to represent security data, we embed a
(struct label *) pointer, which now references labels allocated using
a UMA zone (mac_label.c).  This allows the size and shape of struct
label to be varied without changing the size and shape of these kernel
objects, which become part of the frozen ABI with 5-STABLE.  This opens
the door for boot-time selection of the number of label slots, and hence
changes to the bound on the number of simultaneous labeled policies
at boot-time instead of compile-time.  This also makes it easier to
embed label references in new objects as required for locking/caching
with fine-grained network stack locking, such as inpcb structures.

This change also moves us further in the direction of hiding the
structure of kernel objects from MAC policy modules, not to mention
dramatically reducing the number of '&' symbols appearing in both the
MAC Framework and MAC policy modules, and improving readability.

While this results in minimal performance change with MAC enabled, it
will observably shrink the size of a number of critical kernel data
structures for the !MAC case, and should have a small (but measurable)
performance benefit (i.e., struct vnode, struct socket) do to memory
conservation and reduced cost of zeroing memory.

NOTE: Users of MAC must recompile their kernel and all MAC modules as a
result of this change.  Because this is an API change, third party
MAC modules will also need to be updated to make less use of the '&'
symbol.

Suggestions from:	bmilekic
Obtained from:		TrustedBSD Project
Sponsored by:		DARPA, Network Associates Laboratories
2003-11-12 03:14:31 +00:00
bin When the P flag is set (i.e. Overwrite regular files before deleting them), 2003-11-10 09:40:18 +00:00
contrib Remove a comment stating that -pthread isn't supported. 2003-11-10 18:52:57 +00:00
crypto Add a missing word. 2003-10-31 21:49:47 +00:00
etc Use the new "default_labels" syntax in the default mac.conf file. 2003-11-11 03:30:29 +00:00
games reformat HP eng. mgr quote 2003-11-10 23:08:39 +00:00
gnu The current Perl 5.8 version is 5.8.1; 5.8.2 is right around the corner. 2003-11-10 08:28:22 +00:00
include Add the pthread_atfork() prototype. 2003-11-04 20:10:15 +00:00
kerberos5 The header files hdb_asn1.h, hdb_err.h, and kadm5_err.h are generated, 2003-10-10 13:12:35 +00:00
lib - Markup fix-ups (add .Dq, and some hard line breaks at the end 2003-11-11 18:31:36 +00:00
libexec Tidy up some xdrproc_t related warnings. 2003-10-26 04:32:53 +00:00
release Help bmah out and add the ips(4) entity. 2003-11-11 19:20:13 +00:00
rescue Alternate version of rev 1.20. 2003-11-09 01:22:27 +00:00
sbin - Add some information about how init, securelevel, and jails 2003-11-11 18:37:50 +00:00
secure Explicitly add libz and libcrypto to LDADD for any ssh utilities missing 2003-08-19 07:45:03 +00:00
share Mdoc Janitor: 2003-11-12 02:35:20 +00:00
sys Modify the MAC Framework so that instead of embedding a (struct label) 2003-11-12 03:14:31 +00:00
tools add 802.11 layer stats dumper 2003-11-08 01:06:19 +00:00
usr.bin make minimum column size for interrupt name be the heading (depends upon 2003-11-09 20:39:56 +00:00
usr.sbin - Add a note that there are two MIB variables that have per-jail 2003-11-11 18:34:29 +00:00
COPYRIGHT Update to add the July 22, 1999 addendum. 1999-09-05 21:33:47 +00:00
MAINTAINERS I'll maintain dhclient from now on. 2003-08-01 17:54:11 +00:00
Makefile Don't allow the 'make' target (which rebuilds make for bootstrapping) 2003-11-07 08:36:55 +00:00
Makefile.inc1 Make two directories under usr/share/bsnmp that are needed during 2003-11-10 09:00:08 +00:00
README KerberosIV de-orbit burn continues. Disconnect from "make world". 2003-03-08 10:01:26 +00:00
UPDATING Correct a typo; two permutations of ACPI are plenty already. 2003-11-04 19:42:55 +00:00

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

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, the kernel-modules and the contents of /etc.  The
``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/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 NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


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

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

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.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

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/doc/en_US.ISO8859-1/books/handbook/synching.html