NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO | NOTES
#include <tsol/label.h>char * bcltoh(const bclabel_t * label);
These functions convert binary labels into hexadecimal strings that represent the internal value.
bcltoh() and bcltoh_r() convert a binary CMW label into a string of the form:
0x information_label_hexadecimal_value [0x sensitivity_label_hexadecimal_value ]
bsltoh() and bsltoh_r() convert a binary sensitivity label into a string of the form:
[0x sensitivity_label_hexadecimal_value ]
bcleartoh() and bcleartoh_r() convert a binary clearance into a string of the form:
0x clearance_hexadecimal_value
h_alloc() allocates memory for the hexadecimal value type for use by bcltoh_r() , bsltoh_r() , biltoh_r() , and bcleartoh_r() .
Valid values for type are:
label is a binary CMW label.
label is a binary sensitivity label.
label is a binary clearance.
h_free() frees memory allocated by h_alloc() .
These functions return a pointer to a string that contains the result of the translation, or (char *)0 if the parameter is not of the required type.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Availability | SUNWtsu |
MT-Level | MT-Safe with exceptions described in NOTES |
atohexlabel(1M) , hextoalabel(1M) , bcltobanner(3) , bilconjoin(3) , blcompare(3) , blinset(3) , blmanifest(3) , blminmax(3) , blportion(3) , bltocolor(3) , bltos(3) , bltype(3) , blvalid(3) , hextob(3) , labelinfo(3) , labelvers(3) , sbltos(3) , stobl(3)
The functions bcltoh() , bsltoh() , biltoh() , and bcleartoh() share the same statically allocated string storage. They are not MT -Safe. Subsequent calls to any of these functions will overwrite that string with the newly translated string.
For multithreaded applications, the functions bcltoh_r() , bsltoh_r() , biltoh_r() , and bcleartoh_r() should be used.
Information labels (
IL
s) are not supported in Trusted Solaris 7 and later releases. Trusted Solaris software interprets any
IL
s on communications and files from systems running earlier releases as
ADMIN_LOW
.
Objects still have
CMW
labels, and
CMW
labels still include the
IL
component:
IL[SL]
; however, the
IL
component is fixed at
ADMIN_LOW
.
As a result, Trusted Solaris 7 has the following characteristics:
IL s do not display in window labels; SL s (Sensitivity Labels) display alone within brackets.
IL s do not float.
Setting an IL on an object has no effect.
Getting an object's
IL
will always return
ADMIN_LOW
.
Although certain utilities, library functions, and system calls can manipulate
IL
strings, the resulting
IL
s are always
ADMIN_LOW
, and cannot be set on any objects.
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | SEE ALSO | NOTES