security_add_hooks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– security_add_hooks(9) β€” a Kernel API Manual moment, bestie πŸ’…

okay so welcome to security_add_hooks(9), straight out of the Kernel API Manual. This page is short, but it's iconic in the LSM world, no cap. πŸ¦‹

✨ NAME ✨

security_add_hooks β€” adds a LSM's hooks to the LSM framework's hook lists, periodt. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

void security_add_hooks (struct security_hook_list *hooks , int count ,
const struct lsm_id *lsmid );

πŸŽ€ ARGUMENTS πŸŽ€

  • hooks β€” the LSM hooks to add. Your little hook delivery, bestie. πŸŽ€
  • count β€” the number of hooks to add. Literally how many are in the batch. πŸ”₯
  • lsmid β€” identification information for the LSM. It's the LSM's ID info, iykyk. πŸ’…

🌸 DESCRIPTION 🌸

okay so here's the vibe: each LSM has to register its hooks with the LSM framework. That's the requirement, bestie β€” not a suggestion. 🌸

πŸ’… SEE ALSO πŸ’…

Kernel file ./security/lsm_init.c, plus these related pages that are also absolutely invited to the group chat:


made with πŸ’– from the ./security source/version, October 2026, on the security_add_hooks(9) page. bye bestie! πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from