SECMODEL_SUSER(9)
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 ofsecmodel_suser:"org.netbsd.secmodel.suser"πwhatβ a string, and that string is"is-root"π¦argβ thekauth(9)credentials (kauth_cred_t) of the caller πΈretβ a boolean, set bysecmodel_susertotruewhen the credentials are equivalent to super-user, andfalseotherwise π
π 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 π¦
kauth(9)secmodel(9)secmodel_bsd44(9)secmodel_eval(9)
π 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
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2009 Elad Efrat <elad@NetBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms