setclearance - set process clearance
cc [flag...] file... -ltsol [library...]
#include <tsol/label.h> int setclearance(m_label_t *label_p);
The setclearance() function sets the clearance of the calling process. The new clearance must be dominated by the current process clearance.
Upon successful completion, setclearance() returns 0. Otherwise it returns -1, label_p is unchanged, and errno is set to indicate the error.
The setclearance() function fails and label_p does not refer to a valid clearance if:
label_p points to an invalid address.
invalid clearance value
the function is not supported with Trusted Extensions
insufficient memory
See attributes(7) for descriptions of the following attributes:
|
libtsol(3LIB), m_label(3TSOL), m_label(3TSOL), attributes(7)