Robert Watson 05e830f1e7 Rewrite Biba and MLS label externalization code to use sbufs instead
of C strings internally; C strings require a lot of return value
checking that (a) takes a lot of space, and (b) is difficult to get
right.  Prior to the advent of compartment support, modeling APIs
for helper functions on snprintf worked fine; with the additional
complexity, the sbuf_printf() API makes a lot more sense.

While doing this, break out the printing of sequential compartment
lists into a helper function, mac_{biba,mls}_compartment_to_string().
This permits the main body of mac_{biba,mls}_element_to_string()
to be concerned only with identifying sequential ranges rather
than rendering.

At a less disruptive moment, we'll push the move from snprintf()-like
interface to sbuf()-like interface up into the MAC Framework layer.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-05-31 19:01:44 +00:00
..
2003-05-19 20:29:07 +00:00
2003-05-31 18:20:26 +00:00
2003-05-31 06:51:04 +00:00
2003-05-31 19:00:02 +00:00
2003-05-31 18:55:18 +00:00
2003-05-31 18:52:38 +00:00
2003-05-31 18:56:58 +00:00
2003-05-31 18:45:32 +00:00
2003-04-03 21:36:33 +00:00
2003-05-15 18:51:28 +00:00
2003-05-31 18:20:26 +00:00
2003-03-28 06:43:50 +00:00
2003-05-31 18:17:32 +00:00