SECURELEVEL_GT(9)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

πŸŽ€ 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 supplied level ⭐
  • securelevel_ge() β€” evaluates whether or not the active security level is greater than or equal to the supplied level 🌈

πŸ¦‹ RETURN VALUES πŸ¦‹

these functions return EPERM if the condition evaluated to true, and 0 otherwise πŸ’€ like, that's the whole mood.


πŸ’œ SEE ALSO πŸ’œ


that's the whole page, bestie πŸŽ€ this little icon was brought to you by Debian, dated June 2, 2007 πŸ’–βœ¨

πŸ“¦ where this page comes from