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.
Maximum string lengths. Refer to the labelinfo(3TSOL) man page.
int labelinfo(struct label_info *info);
Version in use. Refer to the labelvers(3TSOL) man page.
int labelvers(char **version, const int length);
Text color name for a binary level. Refer to the bltocolor(3TSOL) man page.
char bltocolor(const blevel_t *label); char bltocolor_t(const blevel_t *label, const int size, char * color_name);