NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | EXAMPLES | SEE ALSO
#include <tsol/label.h>bslabel_t *bcltosl(bclabel_t *label);
These functions provide pointers to, extract, and replace portions of binary labels.
bcltosl() provides a pointer to the sensitivity label of the binary CMW label label.
getcsl() copies the sensitivity label of the binary CMW label source_label to the binary sensitivity label destination_label.
setcsl() replaces the value of the sensitivity label of the binary CMW label destination_label with the value of the binary sensitivity label source_label.
bcltosl() returns a pointer to its label type.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Availability | SUNWtsu |
MT-Level | MT-Safe |
The following example shows how to compare the sensitivity label portion of a binary CMW label with a file's binary sensitivity label.
blequal(bcltosl(&cmw_label), &file_sensitivity_label)
bcltobanner(3TSOL), blcompare(3TSOL), bltos(3TSOL), btohex(3TSOL), labelinfo(3TSOL)
Trusted Solaris Developer's Guide
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | ATTRIBUTES | EXAMPLES | SEE ALSO