TOMOYO-SETPROFILE(8)

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

πŸ’– TOMOYO-SETPROFILE πŸ’–

okay bestie, welcome to the tomoyo-setprofile page β€” it's a system administration utility from the TOMOYO Linux crew, and honestly? it's giving profile assignment. let's get into it ✨


✨ NAME ✨

tomoyo-setprofile β€” the profile assignment utility for TOMOYO Linux πŸŽ€


🌸 SYNOPSIS 🌸

tomoyo-setprofile [option] number <domain> [<domain> ...]

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically this program assigns the specified profile number to the specified domain. that's the whole vibe. πŸ’…

But listen β€” before you can even invoke this program, you must register it in /sys/kernel/security/tomoyo/manager. like, mandatory mandatory. no cap. 🫢

And after you initialize policy? it's usually as simple as rebooting the system. iconic, honestly. πŸ”₯


πŸ’œ OPTIONS πŸ’œ

  • -r β€” apply the specified profile number to all domains whose domain name starts with the specified string. it's the "give me everyone matching this prefix" button ✨
  • number β€” the profile number, and it must be an integer between 0 and 255. no funny business, no out-of-range shenanigans, periodt. πŸ’€
  • <domain> β€” this string has to be quoted or escaped so the shell doesn't misinterpret it, bestie, please. and heads up: it only matches an exact string unless you've got the -r option turned on. πŸŽ€

🌈 EXAMPLES 🌈

Assign profile 0 to all domains πŸ‘‘

tomoyo-setprofile -r 0 '<kernel>'

Assign profile 1 to sshd and httpd domains 🧚

tomoyo-setprofile 1 '<kernel> /usr/sbin/sshd' '<kernel> /usr/sbin/httpd'

😭 BUGS 😭

if you find any bugs, send an email to <tomoyo-users-en@lists.osdn.me>. they want to know, fr fr. πŸ“§


πŸ‘‘ AUTHORS πŸ‘‘

  • Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
    • main author. the main character, honestly. 🌟
  • Jamie Nguyen <jamie@tomoyolinux.co.uk>
    • documentation and website. the lore keeper πŸ“š

πŸ“ SEE ALSO πŸ“

also, see <https://tomoyo.osdn.jp> for more information β€” that's the plug, iykyk πŸ’–


and that's the whole page, bestie!! this one's from tomoyo-tools 2.6.0, dated 2019-02-05 β€” slay, mwah, go assign some profiles responsibly πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from