SECMODEL_SUSER(9)

πŸ“¦ version 11.0, in nixpkgs unstable

okay bestie, welcome to SECMODEL_SUSER(9) β€” the Kernel Developer's Manual page that's lowkey all about the super-user security model πŸ’…βœ¨

🌸 NAME 🌸

secmodel_suser β€” super-user security model 🫢

✨ DESCRIPTION ✨

So secmodel_suser implements the traditional super-user (root) as the user with effective user-id 0. The super-user is the host administrator, and is considered to have higher privileges than other users. That's the whole vibe: root is the main character πŸ‘‘ periodt.

πŸ’… FUNCTIONS πŸ’…

secmodel_suser exposes a secmodel_eval(9) evaluation routine to test whether a set of credentials can be assimilated to super-user credentials or not. It's giving "vibe check, but for credentials" πŸ”₯

The parameters to secmodel_eval(9) are:

  • id β€” the unique identifier of secmodel_suser: "org.netbsd.secmodel.suser" πŸŽ€
  • what β€” a string, and that string is "is-root" πŸ¦‹
  • arg β€” the kauth(9) credentials (kauth_cred_t) of the caller 🌸
  • ret β€” a boolean, set by secmodel_suser to true when the credentials are equivalent to super-user, and false otherwise πŸ’–

🌈 RETURN TYPES 🌈

If successful, the evaluation returns 0 with the ret argument being either true or false. No cap, that's the return situation 😌✨

πŸ¦‹ SEE ALSO πŸ¦‹

πŸŽ€ AUTHORS πŸŽ€

Elad Efrat <elad@NetBSD.org> πŸ’œ


byeee 🫢 β€” this page's cute little footer is from Debian, dated December 4, 2011, for SECMODEL_SUSER(9) πŸ’–βœ¨

πŸ“¦ where this page comes from