freebsd-skq/sys/security/mac
Robert Watson f51e58036e Redesign the externalization APIs from the MAC Framework to
the MAC policy modules to improve robustness against C string
bugs and vulnerabilities.  Following these revisions, all
string construction of labels for export to userspace (or
elsewhere) is performed using the sbuf API, which prevents
the consumer from having to perform laborious and intricate
pointer and buffer checks.  This substantially simplifies
the externalization logic, both at the MAC Framework level,
and in individual policies; this becomes especially useful
when policies export more complex label data, such as with
compartments in Biba and MLS.

Bundled in here are some other minor fixes associated with
externalization: including avoiding malloc while holding the
process mutex in mac_lomac, and hence avoid a failure mode
when printing labels during a downgrade operation due to
the removal of the M_NOWAIT case.

This has been running in the MAC development tree for about
three weeks without problems.

Obtained from:	TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
2003-06-23 01:26:34 +00:00
..
mac_framework.c Redesign the externalization APIs from the MAC Framework to 2003-06-23 01:26:34 +00:00
mac_framework.h Update NAI copyright to 2003, missed in earlier commits and merges. 2003-04-18 19:57:37 +00:00
mac_internal.h Redesign the externalization APIs from the MAC Framework to 2003-06-23 01:26:34 +00:00
mac_net.c Redesign the externalization APIs from the MAC Framework to 2003-06-23 01:26:34 +00:00
mac_pipe.c Redesign the externalization APIs from the MAC Framework to 2003-06-23 01:26:34 +00:00
mac_policy.h Redesign the externalization APIs from the MAC Framework to 2003-06-23 01:26:34 +00:00
mac_process.c Redesign the externalization APIs from the MAC Framework to 2003-06-23 01:26:34 +00:00
mac_syscalls.c Redesign the externalization APIs from the MAC Framework to 2003-06-23 01:26:34 +00:00
mac_system.c Redesign the externalization APIs from the MAC Framework to 2003-06-23 01:26:34 +00:00
mac_vfs.c Redesign the externalization APIs from the MAC Framework to 2003-06-23 01:26:34 +00:00