STRUCT LSM_ID(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 from uapi/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 🌈

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