Trusted Extensions Developer's Guide

Exit Print View

Updated: July 2014
 
 

Setting the Label Encodings File

The labeling_set_encodings() routine is used to activate a specific label encodings file on a Trusted Extensions system. The following routine description includes the prototype declaration for the routine:

int labeling_set_encodings(const char *path);

The labeling_set_encodings() routine returns 0 upon successful completion. Otherwise, it returns -1 and errno indicates the error.

See the labeling_set_encodings (3TSOL) man page.

You can use the is_system_labeled() routine to detect whether the system is labeled.