syssec(2) — SYSTEM CALLS
NAME
syssec − C2 security functions
SYNOPSIS
#include <sys/syssec.h>
int syssec(int cmd, . . .);
DESCRIPTION
syssec implements C2 security functions. The cmd argument determines the function performed. The type and number of arguments expected depends on the function.
Command SYSC_AU_CTL
When cmd is SYSC_AU_CTL, the additional arguments expected are those passed to the au_ctl(3) library call.
Command SYSC_AU_ENTRY
When cmd is SYSC_AU_ENTRY, the additional arguments expected are those passed to the au_entry(3) library call.
Command SYSC_AU_GETAUTHID
When cmd is SYSC_AU_GETAUTHID, the additional arguments expected are those passed to the au_getauthid(3) library call.
Command SYSC_AU_SETAUTHID
When cmd is SYSC_AU_SETAUTHID, the additional arguments expected are those passed to the au_setauthid(3) library call.
Command SYSC_AU_GETPMASK
When cmd is SYSC_AU_GETPMASK, the additional arguments expected are those passed to the au_getpmask(3) library call.
Command SYSC_AU_SETPMASK
When cmd is SYSC_AU_SETPMASK, the additional arguments expected are those passed to the au_setpmask(3) library call.
Command SYSC_SECURITY
When cmd is SYSC_SECURITY, the additional arguments expected are those passed to the security(3) library call.
DIAGNOSTICS
On success, syssec returns a value that depends on cmd. Otherwise, a value of −1 is returned and errno is set to indicate the error. When cmd is invalid, errno is set to EINVAL on return.
SEE ALSO
au_ctl(3), au_entry(3), au_getauthid(3), au_setauthidt(3) au_getpmask(3) au_setpmask(3) security(3)
(Security Enhancement)