Trusted Solaris Developer's Guide

Label Encodings File

The label_encodings file is a text file maintained by the system administrator that contains site-specific label definitions and constraints. This file is kept in /etc/security/tsol/label_encodings. See Trusted Solaris Label Administration and Compartmented Mode Workstation Labeling: Encodings Format for information on the label_encodings file.

These routines return information specified in the label_encodings file on maximum string lengths, version of label_encodings file in use, and text color name for the specified binary level.

int labelinfo(struct label_info *info);
int labelvers(char **version, const int length);
char bltocolor(const blevel_t *label);
char bltocolor_t(const blevel_t *label, const int size, char * color_name);