SECURELEVEL_GT(9)
π SECURELEVEL_GT(9) π
okay bestie, welcome to the SECURELEVEL_GT(9) page from the Kernel Developer's Manual π this one is all about testing the active securelevel, and it's shorter than a TikTok attention span, so let's go β¨
πΈ NAME πΈ
securelevel_gt, securelevel_ge β test active securelevel π
β¨ 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, no cap π«Ά
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 π₯
securelevel_gt()β evaluates whether or not the active security level is greater than the suppliedlevelβsecurelevel_ge()β evaluates whether or not the active security level is greater than or equal to the suppliedlevelπ
π¦ RETURN VALUES π¦
these functions return EPERM if the condition evaluated to true, and 0 otherwise π like, that's the whole mood.
π SEE ALSO π
securelevel(7)β go read it, iykyk πβ¨
that's the whole page, bestie π this little icon was brought to you by Debian, dated June 2, 2007 πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2000 Christian S.J. Peron <maneo@bsdpro.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms