security_add_hooks(9)
π 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:
lsm_choose_security(9)lsm_choose_lsm(9)lsm_debug_enable(9)lsm_enabled_set(9)lsm_is_enabled(9)lsm_order_exists(9)lsm_order_append(9)lsm_order_parse(9)lsm_blob_size_update(9)lsm_prepare(9)lsm_init_single(9)lsm_static_call_init(9)early_security_init(9)security_init(9)security_initcall_pure(9)security_initcall_early(9)security_initcall_core(9)security_initcall_subsys(9)security_initcall_fs(9)security_initcall_device(9)security_initcall_late(9)security_initcall_late_sync(9)
made with π from the ./security source/version, October 2026, on the security_add_hooks(9) page. bye 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