sec_getsyslab Subroutine

Purpose

Gets the system sensitivity and integrity labels.

Library

Standard C library (libc.a)

Syntax

#include <sys/mac.h>
int sec_getsyslab (minsl, maxsl, mintl, maxtl)
sl_t *minsl;
sl_t *maxsl;
tl_t *mintl;
tl_t *maxtl;

Description

The sec_getsyslab subroutine gets the system minimum and maximum sensitivity labels and the system minimum and maximum integrity labels that are being used by the kernel. If the minsl, maxsl, mintl, or maxtl parameter is a null pointer, the corresponding label is not retrieved. If the maxsl or maxtl parameter is requested, either the calling process clearance must dominate the system maximum sensitivity label or integrity label, or the process must have the PV_KER_SECCONFIG or PV_MAC_R privilege.

Parameters

Item Description
minsl Points to the minimum sensitivity label.
maxsl Points to the maximum sensitivity label.
mintl Points to the minimum integrity label.
maxtl Points to the maximum integrity label.

Return Values

Item Description
0 Successful
-1 Unsuccessful

Error Codes

Item Description
EPERM The calling process does not have permissions or privileges.
EFAULT The address that the minsl, maxsl, mintl, or maxtl parameter points to is not valid.