INIT_POLICY(8)

πŸ“¦ version 2.6.1-20210910, in debian bookworm, ubuntu jammy, ubuntu noble, ubuntu questing

πŸ’– INIT_POLICY β€” the TOMOYO Linux policy glow-up πŸ’–

okay so bestie, this is init_policy(8), living in the System Administration Utilities section of the manual, and it's literally the "make me a whole policy from scratch" button. no cap.


✨ NAME ✨

init_policy β€” initialize TOMOYO Linux policy πŸŽ€


🌸 SYNOPSIS 🌸

init_policy [option]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: this program generates templates for all policy files. all of them. the whole set. she's an overachiever, we love that. πŸ’…

but babes, listen β€” you HAVE to review the output. the automatically generated exception policy may contain dangerous or redundant entries. do not just vibe and walk away, i'm begging. 😭

and the best part? this program only needs to be run once. one and done. periodt. ✨


πŸ‘‘ OPTIONS πŸ‘‘

  • --file-only-profile β€” creates profiles with only file-related functionality enabled. minimal queen energy.
  • --full-profile β€” creates profiles with all functionality enabled. this is the [default], so if you don't say anything, this is what you get. main character behavior fr fr.
  • --use_profile=integer β€” sets the default profile number for the "<kernel>" domain to the integer you pick. that integer has to be between 0 and 255, no exceptions bestie. [default=0]
  • --use_group=integer β€” sets the default group number for the "<kernel>" domain to your chosen integer. again, must be between 0 and 255. [default=0]
  • --max_audit_log=integer β€” sets the default maximum number of audit log entries that the kernel will spool in the /sys/kernel/security/tomoyo/audit interface. has to be an integer, and you can set it to 0 if you don't want audit logs at all. 🫢 the maximum memory used can also be controlled via the /sys/kernel/security/tomoyo/stat interface. [default=1024]
  • --max_learning_entry=integer β€” sets the default maximum number of ACL entries that the kernel automatically adds to each domain when you're using learning mode. must be an integer, and can be set to o if you do not need learning mode. πŸ™ˆ (yes, write it exactly like that.) the maximum memory used can also be controlled using the /sys/kernel/security/tomoyo/stat interface.
  • --grant_log=value β€” sets whether grant logs should be audited. this value can either be "yes" or "no". [default=no]
  • --reject_log=value β€” sets whether reject logs should be audited. this value can either be "yes" or "no". [default=yes]

🌈 EXAMPLES 🌈

initialize policy, go off:

/usr/lib/tomoyo/init_policy

πŸ’€ BUGS πŸ’€

if you find any bugs, send an email to <tomoyo-users-en@lists.osdn.me>. be nice about it tho, they're doing their best. πŸ“


🧚 AUTHORS 🧚

  • Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
    • main author. the moment. the icon. πŸ‘‘
  • Jamie Nguyen <jamie@tomoyolinux.co.uk>
    • documentation and website. carrying the whole docs situation. πŸ’œ
  • Naohiro Aoto <naoto@namazu.org>
    • bug fix for 64bit Gentoo. we stan a legend. ✨

πŸŽ€ SEE ALSO πŸŽ€

see <https://tomoyo.osdn.jp> for more information. iykyk πŸ”₯


and that's the whole page bestie!! this one's from tomoyo-tools 2.6.0, dated 2019-02-05 β€” a little vintage, still iconic. go run it once, review your policy, and slay responsibly πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from