security(3) — LIBRARY FUNCTIONS
NAME
security − get the state of the kernel security features
SYNOPSIS
#include <sys/syssec.h>
int state = security (void);
DESCRIPTION
The security system call is used to determine what level of security, if any, is in the kernel. The system call will set the state variable to one of the following:
SEC_NONE
The security package has not been installed.
SEC_C2
The kernel contains C2 level security.
SEC_B1
The kernel contains B1 level security.
SEC_CMW
The kernel contains CMW level security.
DIAGNOSTICS
Upon successful completion, the security state is returned. Otherwise, a value of −1 is returned and errno is set to indicate the error.
(Security Enhancement)