sec_setsyslab Subroutine

Purpose

Sets the system sensitivity and integrity labels.

Library

Standard C library (libc.a)

Syntax

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

Description

The sec_setsyslab subroutine sets the system minimum and maximum sensitivity labels, and the system minimum and maximum integrity labels to be used by the kernel. If the value a label is not specified, or is NULL, that label will not be changed in the kernel. The calling process must have the PV_KER_SECCONFIG privilege in its effective privilege set.

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.