tomoyo_load_policy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ”₯


mwah πŸ’‹ β€” this cutie came from ./security/tomoyo, stamped October 2026, and the page itself is tomoyo_load_policy(9) πŸŽ€

πŸ“¦ where this page comes from