tomoyo_read_self(9)
π¦ tomoyo_read_self(9) β read() for the /sys/kernel/security/tomoyo/self_domain interface π
okay so bestie, this one is from the Kernel API Manual, and the manual name is literally right there: tomoyo_read_self(9). it's giving kernel securityfs main-character energy, no cap. β¨
β¨ NAME β¨
tomoyo_read_self β read() for /sys/kernel/security/tomoyo/self_domain interface. πΈ
π SYNOPSIS π
ssize_t tomoyo_read_self (struct file *file , char __user *buf , size_t
count , loff_t *ppos );
π ARGUMENTS π
fileβ Pointer tostruct file. literally the file object, bestie. π«Άbufβ Domainname which current thread belongs to. yes, that's the domainname the current thread belongs to β iconic. πcountβ Size ofbuf. like, how big the buffer is. βpposβ Bytes read by now. tracking the read position vibes, fr fr. π¦
π DESCRIPTION π
Returns read size on success, negative value otherwise. that's the whole plot, bestie β success gives you the read size, anything else gives you a negative value. π no cap.
π§ SEE ALSO π§
Kernel file ./security/tomoyo/securityfs_if.c β plus the whole friend group: tomoyo_check_task_acl(9), tomoyo_write_self(9), tomoyo_open(9), tomoyo_release(9), tomoyo_poll(9), tomoyo_read(9), tomoyo_write(9), tomoyo_create_entry(9), tomoyo_interface_init(9). π
xoxo from ./security/tomoyo, October 2026 π
β¨
π¦ 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