Gets the system sensitivity and integrity labels.
Standard C library (libc.a)
#include <sys/mac.h>
int sec_getsyslab (minsl, maxsl, mintl, maxtl)
sl_t *minsl;
sl_t *maxsl;
tl_t *mintl;
tl_t *maxtl;
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.
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. |
Item | Description |
---|---|
0 | Successful |
-1 | Unsuccessful |
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. |