tomoyo_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tomoyo_write(9) πŸ’–

Okay bestie, welcome to the Kernel API Manual β€” and the main character of this page is literally tomoyo_write(9), the write() for the /sys/kernel/security/tomoyo/ interface. No cap, that's the vibe. πŸ¦‹


🌸 NAME 🌸

tomoyo_write β€” the write() for the /sys/kernel/security/tomoyo/ interface. She's specific, she's iconic, she's here. πŸ’…


✨ SYNOPSIS ✨

Behold the signature, copied exactly so nobody comes for me:

       ssize_t tomoyo_write (struct file *file , const char __user *buf ,
       size_t count , loff_t *ppos );

πŸŽ€ ARGUMENTS πŸŽ€

Listen, there are four of them, and they're giving exactly this:

  • file β€” pointer to struct file. πŸ’–
  • buf β€” pointer to buffer. 🫢
  • count β€” size of buf. ⭐
  • ppos β€” unused. Like, not even used, bestie. πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

Returns count on success, negative value otherwise. That's it, that's the tea β€” success gets you count back, and anything else is a negative value. Periodt. πŸ’œ


πŸ¦‹ SEE ALSO πŸ¦‹

Go snoop here, bestie:

All of these are part of the same little friend group. πŸ’œ


Cute sign-off time: this page is brought to you by ./security/tomoyo, dated October 2026, and yes β€” it's still tomoyo_write(9). Periodt. πŸŽ€

πŸ“¦ where this page comes from