INIT_POLICY(8)
π 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 between0and255, no exceptions bestie. [default=0]--use_group=integerβ sets the default group number for the"<kernel>"domain to your chosen integer. again, must be between0and255. [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/auditinterface. has to be an integer, and you can set it to0if you don't want audit logs at all. π«Ά the maximum memory used can also be controlled via the/sys/kernel/security/tomoyo/statinterface. [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 tooif 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/statinterface.--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
- debian bookworm: tomoyo-tools 2.6.1-20210910-1+b1 Β· GPL-2.0-only
- ubuntu jammy: tomoyo-tools 2.6.1-20210910-1 Β· GPL-2.0-only
- ubuntu noble: tomoyo-tools 2.6.1-20210910-1 Β· GPL-2.0-only
- ubuntu questing: tomoyo-tools 2.6.1-20210910-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms