The components of sensitivity labels and clearances; and the handling caveats that appear on printer output are specified in a site-specific label_encodings(4) file. Some of the programming interfaces described in this chapter access these specifications in the label_encodings file, and therefore, their outputs vary depending on the label_encodings file in use for a particular site.
This example gets the version string of the label_encodings file accessed in some of the code examples in this chapter, and prints the version string to standard out.
#include <tsol/label.h> main() { int retval, length = 0; char *version = (char *)0; retval = labelvers(&version, length); if(retval > 0) printf("Version string = %s\n", version); }
The printf statement prints the following:
Version string = TRUSTED SOLARIS MULTI-LABEL SAMPLE VERSION - 5.5 00/07/19 |