DOKK / manpages / debian 10 / freebsd-manpages / securelevel_gt.9freebsd.en
SECURELEVEL_GT(9) Kernel Developer's Manual SECURELEVEL_GT(9)

securelevel_gt, securelevel_getest active securelevel

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

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

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

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 () function will evaluate whether or not the active security level is greater than the supplied level.

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

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

securelevel(7)

June 2, 2007 Debian