lsm_name_to_attr(9)
π lsm_name_to_attr(9) π
okay so bestie, welcome to the Kernel API Manual page for lsm_name_to_attr(9) β itβs giving tiny lookup icon and weβre literally obsessed. β¨
πΈ NAME πΈ
lsm_name_to_attr β map an LSM attribute name to its ID π
β¨ SYNOPSIS β¨
u64 lsm_name_to_attr (const char *name );
π¦ ARGUMENTS π¦
nameβ name of the attribute. the whole vibe check for this function, ngl π
π DESCRIPTION π
Returns the LSM attribute value associated with name, or 0 if there is no mapping. so you hand over a name, and it gives you back the matching LSM attribute value β and if thereβs no mapping, you get 0, periodt. π
π₯ SEE ALSO π₯
- Kernel file
./security/lsm_syscalls.c sys_lsm_set_self_attr(9)sys_lsm_get_self_attr(9)sys_lsm_list_modules(9)
these are the related kernel besties to go read next, iykyk πβ¨
big sign-off from the ./security source tree, October 2026 edition β stay iconic, bestie π«Άππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms