Trusted Extensions Developer's Guide

Exit Print View

Updated: July 2014
 
 

Enabling and Disabling a Trusted Extensions System

The labeling_enable() routine is used to enable a Trusted Extensions system. The labeling_disable() routine is used to disable a Trusted Extensions system. These functions are asynchronous; they return before the enabling or disabling of the system completes. The following routine description includes the prototype declaration for each routine:

int labeling_enable(uint_t flags);

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

int labeling_disable(uint_t flags);

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

The possible flags are LABELING_DELAY, LABELING_FORCE, and LABELING_SYSLOG. See the labeling_enable (3TSOL) man page.