TOMOYO-SAVEPOLICY(8)
πΎ TOMOYO-SAVEPOLICY β save TOMOYO Linux policy β¨
okay bestie, so this is tomoyo-savepolicy from the System Administration Utilities corner of the tomoyo-tools world, and it's literally the girl who makes sure your kernel's policy vibes get written down before they evaporate. no cap.
πΈ SYNOPSIS πΈ
tomoyo-savepolicy [directory]
tomoyo-savepolicy [directory] [remote_ip:remote:port]
ok yes the second line saysremote:portin the synopsis andremote_portdown in the options. that's not me being messy, that's just how the page is. copy it exact, bestie π«Ά
π DESCRIPTION π
so like. this program saves TOMOYO Linux policy onto disk from kernel memory. that's the whole job. that's her purpose. main character energy.
the directory /etc/tomoyo/policy/YY-MM-DD.hh:mm:ss gets created, and inside it there are four files:
domain_policy.confexception_policy.confprofile.confmanager.conf
and the symbolic links /etc/tomoyo/policy/previous and /etc/tomoyo/policy/current get updated so they point to the previous and current YY-MM-DD.hh:mm:ss directories respectively. the way she keeps a lil receipts folder for every single save?? iconic.
these symbolic links should exist within the /etc/tomoyo directory:
domain_policy.conf -> policy/current/domain_policy.conf
exception_policy.conf -> policy/current/exception_policy.conf
profile.conf -> policy/current/profile.conf
manager.conf -> policy/current/manager.conf
policy/current -> policy/YY-MM-DD.hh:mm:ss
policy/previous -> policy/YY-MM-DD.hh:mm:ss
so the whole point is: you can access the current policy files without having to descend into subdirectories, and without having to sit there like "hmm which YY-MM-DD.hh:mm:ss directory is the most recent π". the symlinks handle it. she handles it. periodt.
and if the policy type is specified, this program works similar to cat(1). yes ma'am, she can just print it at you.
π OPTIONS π
-eβ prints/sys/kernel/security/tomoyo/exception_policyto standard output.-dβ prints/sys/kernel/security/tomoyo/domain_policyto standard output.-pβ prints/sys/kernel/security/tomoyo/profileto standard output.-mβ prints/sys/kernel/security/tomoyo/managerto standard output.-sβ prints/sys/kernel/security/tomoyo/statto standard output.directoryβ saves policy to an alternative directory, rather than the default/etc/tomoyodirectory.remote_ip:remote_portβ saves policy on a remote system via an agent waiting at portremote_porton IP addressremote_ip. yes she can reach across the network and grab it. obsessed.
π₯ EXAMPLES π₯
save policy to disk:
tomoyo-savepolicy
print "/sys/kernel/security/tomoyo/exception_policy" to standard output:
tomoyo-savepolicy -e
retrieve policy from a remote system and save it in a local directory:
tomoyo-savepolicy /etc/tomoyo/192.168.1.1/ 192.168.1.1:10000
π BUGS π
if you find any bugs, send an email to <tomoyo-users-en@lists.osdn.me>. she reads her inbox fr fr, so don't be shy.
π AUTHORS π
- Tetsuo Handa
<penguin-kernel@I-love.SAKURA.ne.jp>- Main author.
- Jamie Nguyen
<jamie@tomoyolinux.co.uk>- Documentation and website.
π SEE ALSO π
tomoyo-editpolicy-agent(8), tomoyo-loadpolicy(8)
see <https://tomoyo.osdn.jp> for more information. iykyk π
k that's the whole page bestie π this was tomoyo-tools 2.6.0, dated 2019-02-05, and yes it's the TOMOYO-SAVEPOLICY(8) manual. go save some policy, you ate πβ¨
π¦ 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