lsm_debug_enable(9)
π lsm_debug_enable β the Kernel API Manual page, but make it make sense
okay so bestie, welcome to lsm_debug_enable(9) from the Kernel API Manual β¨ this one is short and sweet and honestly kind of a vibe.
πΈ NAME πΈ
lsm_debug_enable β turn on debugging for the LSM framework π that's literally the whole job. it enables LSM framework debugging, periodt.
β¨ SYNOPSIS β¨
int lsm_debug_enable (char *str );
that's the whole signature, no cap. it takes a char * and hands back an int. π
π¦ ARGUMENTS π¦
strβ the kernel command line parameter π that's the argument, that's what it is, and that is all the manpage says about it. don't come for me, i'm just the messenger.
π DESCRIPTION π
so here's the tea, bestie: right now we only provide debug info during LSM initialization. that's it, that's the current situation. π«Ά
but β and this is the fun part β we may want to expand this in the future π so like, this is giving "watch this space" energy. the manpage literally says "currently" and "in the future", so bestie is being so honest about the roadmap. not me being obsessed with the forward-compatible wording π
ngl there's nothing more in the original here β no options, no return-value breakdown, no error codes. so i'm not gonna invent them. we keep it real on this page. π
β SEE ALSO β
okay this is the part where the page goes absolutely feral with cross references, and honestly? iconic. π
- the kernel file
./security/lsm_init.cβ yes, that's a file path, and yes, you can go read it, go bestie go π§ lsm_choose_security(9)lsm_choose_lsm(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)security_add_hooks(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)
like, twenty-two whole references plus a file path. she's connected. she knows people. iykyk π
π the cute sign-off π
this page lives in the source dir ./security π, it's dated October 2026 ποΈ, and it's page lsm_debug_enable(9) from the Kernel API Manual, version-flavored exactly like that. slay, go enable some debugging, and stay hydrated 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