Go to main content

man pages section 3: Extended Library Functions, Volume 4

Exit Print View

Updated: Thursday, June 13, 2019
 
 

getclearance (3TSOL)

Name

getclearance - get process clearance

Synopsis

cc [flag...] file... -ltsol [library...]
#include <tsol/label.h>
int getclearance(m_label_t *label_p);

Description

The getclearance() function obtains the clearance of the calling process.

Return Values

Upon successful completion, getclearance() returns 0. Otherwise it returns -1, label_p is unchanged, and errno is set to indicate the error.

Errors

The getclearance() function fails and label_p does not refer to a valid clearance if:

EFAULT

label_p points to an invalid address.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe
Availability
system/file_labeling

See Also

ucred_get(3C), libtsol(3LIB), m_label(3TSOL), m_label(3TSOL), attributes(7)