Go to main content

man pages section 3: Extended Library Functions, Volume 4

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

setclearance (3TSOL)

Name

setclearance - set process clearance

Synopsis

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

Description

The setclearance() function sets the clearance of the calling process. The new clearance must be dominated by the current process clearance.

Return Values

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

Errors

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

EFAULT

label_p points to an invalid address.

EINVAL

invalid clearance value

ENOTSUP

the function is not supported with Trusted Extensions

ENOMEM

insufficient memory

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

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