tomoyo_path_chmod(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tomoyo_path_chmod β€” kernel API manual, bestie edition ✨

okay so real talk, this is a page from the Kernel API Manual and it's all about tomoyo_path_chmod, which is literally the target for security_path_chmod(). yes bestie, that's the whole name section, we move πŸ’–


✨ SYNOPSIS ✨

int tomoyo_path_chmod (const struct path *path , umode_t mode );

that's the whole signature, character for character, no notes πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • path β€” a pointer to struct path. like, it points at the path, that's the vibe πŸ¦‹
  • mode β€” the DAC permission mode. the actual permission bits, periodt 🌸

πŸ”₯ DESCRIPTION πŸ”₯

so what does it do? it returns 0 on success. and if things don't go your way? it returns a negative value instead. that's it, that's the whole description, no cap 😭


🌈 SEE ALSO 🌈

okay this is the part where the page just absolutely goes off, look at this squad 🫢

like, every single one of them, we did not skip a single hook, iykyk πŸ’…


quick vibe check: the whole point is return 0 = slay, negative = not slay. don't overthink it bestie πŸ’–

⭐ and that's the page!! sourced from ./security/tomoyo, dated October 2026, and yes it's still tomoyo_path_chmod(9) β€” mwah, go touch some kernel code πŸ§šβ€β™€οΈπŸŽ€

πŸ“¦ where this page comes from