tail head cat sleep
QR code linking to this page

Manual Pages  — SECURELEVEL_GT

NAME

securelevel_gt – test active securelevel

CONTENTS

SYNOPSIS

#include <sys/types.h>
#include <sys/proc.h>

int
securelevel_gt(struct ucred *cr, int level);

int
securelevel_ge(struct ucred *cr, int level);

DESCRIPTION

These functions test the active security level against the given level. If the calling credential cr was imprisoned by the jail(2) system call, and has a different security level set than the host environment, the security level with the highest value is used.

The securelevel_gt() function will evaluate whether or not the active security level is greater than the supplied level.

The securelevel_ge() function will evaluate whether or not the active security level is greater than or equal to the supplied level.

RETURN VALUES

These functions return EPERM if condition evaluated to true, and 0 otherwise.

SEE ALSO

securelevel(7)

SECURELEVEL_GT (9) June 2, 2007

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

… one of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.
— Robert Firth