securelevel_gt, securelevel_ge — test active securelevel
Contents
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.
Name
securelevel_gt, securelevel_ge — test active securelevel
Return Values
These functions return EPERM if condition evaluated to true, and 0 otherwise.
See Also
securelevel(7) Debian June 2, 2007 SECURELEVEL_GT(9)
Synopsis
#include<sys/types.h>#include<sys/proc.h>intsecurelevel_gt(structucred*cr, intlevel);
intsecurelevel_ge(structucred*cr, intlevel);
