tomoyo_file_ioctl(9)
π tomoyo_file_ioctl β bestie's guide to the TOMOYO ioctl hook π
okay so real quick, this is a page from the Kernel API Manual (section 9, the kernel-functions girlies β¨), and it's literally about tomoyo_file_ioctl. that's the whole vibe. let's get into it π
β¨ NAME β¨
tomoyo_file_ioctl β the target for security_file_ioctl(). that's it, that's the job π
πΈ SYNOPSIS πΈ
int tomoyo_file_ioctl (struct file *file , unsigned int cmd , unsigned
long arg );
likeβ¦ it takes a file, a command, and an arg, and it returns an int. iconic signature tbh π
π¦ ARGUMENTS π¦
fileβ a pointer tostruct file. yes, the actual file object, no cap ποΈcmdβ the command for the ioctl. this is what you're asking for, bestie π―argβ the argument forcmd. it rides along with the command like a little sidekick π«Ά
π DESCRIPTION π
Returns 0 on success, and a negative value otherwise. that's the whole description fr fr β no lore, no extra drama, just: zero means slay, negative means something went sideways π
π₯ SEE ALSO π₯
the full squad. every single one of these is linked below β no skipping, we don't do that here π
Kernel file ./security/tomoyo/tomoyo.c plus, in order:
tomoyo_domain(9)tomoyo_cred_prepare(9)tomoyo_bprm_committed_creds(9)tomoyo_bprm_creds_for_exec(9)tomoyo_bprm_check_security(9)tomoyo_inode_getattr(9)tomoyo_path_truncate(9)tomoyo_file_truncate(9)tomoyo_path_unlink(9)tomoyo_path_mkdir(9)tomoyo_path_rmdir(9)tomoyo_path_symlink(9)tomoyo_path_mknod(9)tomoyo_path_link(9)tomoyo_path_rename(9)tomoyo_file_fcntl(9)tomoyo_file_open(9)tomoyo_path_chmod(9)tomoyo_path_chown(9)tomoyo_path_chroot(9)tomoyo_sb_mount(9)tomoyo_sb_umount(9)tomoyo_sb_pivotroot(9)tomoyo_socket_listen(9)tomoyo_socket_connect(9)tomoyo_socket_bind(9)tomoyo_socket_sendmsg(9)tomoyo_task_alloc(9)tomoyo_task_free(9)tomoyo_init(9)
and that's the page!! π§π this one lives down in ./security/tomoyo and it's dated October 2026 β shoutout to whoever stamped it, mwah π and yeah, it's tomoyo_file_ioctl(9) all the way down. bye bestie, go read the other 29 now πβ¨π
π¦ 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