tomoyo_write(9)
π 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 tostruct file. πbufβ pointer to buffer. π«Άcountβ size ofbuf. β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:
- Kernel file
./security/tomoyo/securityfs_if.cπ tomoyo_check_task_acl(9)β¨tomoyo_write_self(9)πtomoyo_read_self(9)πΈtomoyo_open(9)πtomoyo_release(9)π¦tomoyo_poll(9)πtomoyo_read(9)πtomoyo_create_entry(9)βtomoyo_interface_init(9)π«Ά
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms