tomoyo_set_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

tomoyo_set_mode β€” set the mode for a specified profile, bestie πŸ’…


🌸 SYNOPSIS 🌸

int tomoyo_set_mode (char *name , const char *value , struct
tomoyo_profile *profile );

πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” the name of the functionality, like the label on the tin 🏷️
  • value β€” the mode you're setting for name, the actual vibe check βœ…
  • profile β€” a pointer to "struct tomoyo_profile", i.e. the profile you're doing all this for 🫢

πŸ’œ DESCRIPTION πŸ’œ

Okay so here's the whole plot: it returns 0 on success, and a negative value otherwise. That's it, that's the function. Short king behavior, honestly πŸ‘‘ No cap, sometimes an icon just does one thing and does it well.

Heads up: anything that isn't 0 is a negative value, so don't go treating it like a happy little success code, fr fr πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./security/tomoyo/common.c, plus this whole friend group right here β€” every single one of them, no skipping 😀:


That's the whole page, periodt 🫢 straight from ./security/tomoyo, dated October 2026 β€” so you know it's fresh 🌸 go be iconic with your profiles, bestie, and may all your return values be 0 βœ¨πŸ’–

πŸ“¦ where this page comes from