TOMOYO-LOADPOLICY(8)
π TOMOYO-LOADPOLICY π
okay bestie, so this one lives in the System Administration Utilities corner of the tomoyo-loadpolicy(8) manual, and it's literally the girl who feeds TOMOYO Linux policy straight into your kernel. no cap. π
β¨ NAME β¨
tomoyo-loadpolicy β load TOMOYO Linux manually
π¦ SYNOPSIS π¦
tomoyo-loadpolicy [option]
tomoyo-loadpolicy [option] [remote_ip:remote_port]
πΈ DESCRIPTION πΈ
So like. This program reads TOMOYO Linux policy from standard input and loads it into the kernel. That's the whole job. It's giving very "I take your words and I put them where they belong" energy and honestly? obsessed. π
π OPTIONS π
-eβ Append to/sys/kernel/security/tomoyo/exception_policy. π«Ά-efβ Overwrite/sys/kernel/security/tomoyo/exception_policy. (yes bestie, thefis for full send, like, replace it entirely)-dβ Append to/sys/kernel/security/tomoyo/domain_policy.-dfβ Overwrite/sys/kernel/security/tomoyo/domain_policy.-mβ Append to/sys/kernel/security/tomoyo/manager.-pβ Append to/sys/kernel/security/tomoyo/profile.-sβ Append to/sys/kernel/security/tomoyo/stat.remote_ip:remote_portβ Write to policy on a remote system via an agent waiting at portremote_porton IP addressremote_ip. long-distance relationship core π
π EXAMPLES π
okay so here's where it gets fun, actual receipts:
Append a line to exception policy
echo "acl_group 0 file read proc:/meminfo" | tomoyo-loadpolicy -e
Remove a line from exception policy
echo "delete acl_group 0 file read proc:/meminfo" | tomoyo-loadpolicy -e
Append a line to domain policy
( echo "<kernel>"; echo "file execute /sbin/init" ) | tomoyo-loadpolicy -d
Replace currently loaded domain policy
tomoyo-loadpolicy -df < /etc/tomoyo/domain_policy.conf
Append to policy remotely
tomoyo-loadpolicy -d 192.168.1.1:10000 < /etc/tomoyo/192.168.1.1/domain_policy.conf
Remove a line from "/sys/kernel/security/tomoyo/manager"
echo "delete /usr/sbin/tomoyo-queryd" | tomoyo-loadpolicy -m
π BUGS π
If you find any bugs, send an email to <tomoyo-users-en@lists.osdn.me>. not me asking you to actually email them though β like, please do, they wanna know π₯Ί
π§ AUTHORS π§
- Tetsuo Handa
<penguin-kernel@I-love.SAKURA.ne.jp>- Main author. main character energy fr fr π
- Jamie Nguyen
<jamie@tomoyolinux.co.uk>- Documentation and website. the PR girlie of the operation π
π SEE ALSO π
tomoyo-savepolicy(8), tomoyo-editpolicy(8), tomoyo-editpolicy-agent(8), tomoyo-init(8)
See <https://tomoyo.osdn.jp> for more information. (go look, iykyk β)
bestie reminder: policy goes in through standard input, kernel gets it, and you look iconic doing it. slay. π β¨
and that's the tea, babes β this page is from tomoyo-tools 2.6.0, dated 2019-02-05, and it's part of the System Administration Utilities collection. periodt. ππ¦π
π¦ 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