tomoyo_load_policy(9)
π tomoyo_load_policy(9) π
okay bestie, welcome to the tomoyo_load_policy(9) page from the Kernel API Manual β yes, that manual name is doing main character energy up top so you don't miss it β¨
πΈ NAME πΈ
tomoyo_load_policy β run the external policy loader to load policy, no cap π«Ά
π¦ SYNOPSIS π¦
void tomoyo_load_policy (const char *filename );
π ARGUMENTS π
filenameβ the program that's about to start π
β¨ DESCRIPTION β¨
so here's the vibe: this function checks whether filename is /sbin/init, and if it is, it invokes /sbin/tomoyo-init and waits for the termination of /sbin/tomoyo-init β like, fully waits β and then it continues invocation of /sbin/init. periodt π
and /sbin/tomoyo-init reads policy files in the /etc/tomoyo/ directory and writes to the /sys/kernel/security/tomoyo/ interfaces. that's the whole pipeline, bestie π§
Returns nothing. literally nothing, like not even a little return value π
π₯ SEE ALSO π₯
- Kernel file
./security/tomoyo/load_policy.c tomoyo_loader_setup(9)tomoyo_policy_loader_exists(9)tomoyo_trigger_setup(9)
mwah π β this cutie came from ./security/tomoyo, stamped October 2026, and the page itself is tomoyo_load_policy(9) π
π¦ 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