Posix P1003.1e/2c Implementation example source

Casey Schaufler casey at sgi.com
Mon Feb 21 17:43:41 GMT 2000


"Ilmar S. Habibulin" wrote:
> 
> On Fri, 18 Feb 2000, Casey Schaufler wrote:
> 
> > > I understand that, but i didn't find function, which converts internal
> > > representation to user one.
> > That would be mac_to_text() and mac_from_text, in
> > src/mac/lib/mac_posix.c
> Ok, but can i take a look at __msent_to_text/__mint_to_text functions?
> If you can't publish them, can you send me an example of textual
> representation?

That would be in src/mac/lib/mac_util.c

Have a look in the design documents, while you're looking around.

A Trix MAC label has two parts, a sensitivity, and an integrity.
Each of these has a type part, a heirarchical part, and a set part.
The Text form will be one of:

	<alias> || <sensitivity>/<integrity>

sensitivity::
	<msentype> ||
	<level>[,<category>]... ||
	<msentype>,<level>[,<category>]...

integrity::
	<minttype> ||
	<grade>[,<division>]... ||
	<minttype>,<grade>[,<division>]...

Aliases are defined (in Trix 6.5.x) in /etc/mac. An example:

userlow:alias:msentcsec,unclassified/mintbiba,lowestgrade

-- 

Casey Schaufler				Manager, Trust Technology, SGI
casey at sgi.com				voice: (650) 933-1634
To Unsubscribe: send mail to majordomo at cyrus.watson.org
with "unsubscribe posix1e" in the body of the message



More information about the posix1e mailing list