STRUCT LSM_ID(9)
β¨ struct lsm_id(9) β¨
okay so bestie, welcome to the struct lsm_id(9) page π
this is a Kernel API Manual situation, and honestly? it's giving "small but mighty." let's get into it π«Ά
πΈ NAME πΈ
struct lsm_id β Identify a Linux Security Module.
like, it literally tells you which LSM you're looking at. main character energy fr fr π
π SYNOPSIS π
struct lsm_id {
const char *name;
u64 id;
};
look at her. two members. no notes. ate and left no crumbs β¨
π¦ Members π¦
nameβ the name of the LSM, and listen π it must be approved by the LSM maintainers. no cap, you can't just make one up, that's not how this works πidβ the LSM ID number, straight fromuapi/linux/lsm.h. that's where it lives, that's where you get it π
π Description π
okay so the whole vibe of this struct is simple: it contains the information that identifies the LSM. that's it. that's the gig. it's an ID card for your security module and it's iconic for it π β¨
π SEE ALSO π
- Kernel file
./include/linux/lsm_hooks.hstruct lsm_info(9) lsm_get_xattr_slot(9)
go read those too, iykyk π§π
and that's the whole page!! short and sweet, just like we like it π
source/version: ./include/linux π« date: October 2026 πΈ and yes, the page signs off as struct lsm_id(9) β periodt π
π
π¦ 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