tomoyo_file_fcntl(9)
π tomoyo_file_fcntl β the kernel API manual, bestie edition π
okay so real talk, this page lives in the kernel API manual and we're about to read it together like it's the group chat. it's tomoyo_file_fcntl(9), obviously π
β¨ NAME β¨
tomoyo_file_fcntl β bestie, this is the target for security_file_fcntl(). that's it, that's the whole vibe check π
πΈ SYNOPSIS πΈ
int tomoyo_file_fcntl (struct file *file , unsigned int cmd , unsigned long arg );
literally the entire signature, no notes, no cap π
π¦ ARGUMENTS π¦
fileβ a pointer tostruct file. yes, thatstruct file. the icon itself π«Άcmdβ the command forfcntl. it's giving "what are we even doing here" energy πargβ the argument forcmd. it rides shotgun, always πΈ
π₯ DESCRIPTION π₯
okay so the whole personality of this function is short and sweet: it returns 0 on success, and a negative value otherwise. that's the tea β the way that it's just zero-or-negative, no in-between, no drama, main character energy fr fr β¨
ngl bestie, "negative value otherwise" is all the docs give us β no extra lore, no secret bonus behaviour. do not go making stuff up, iykyk π
π SEE ALSO π
the kernel file ./security/tomoyo/tomoyo.c is where it lives, and here's the whole squad β every single one of them, no skips, no shortcuts π
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_open(9)tomoyo_file_ioctl(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)
like, the whole friend group showed up to the function's birthday party π obsessed, honestly π
and that's the page!! π this lil slice of docs comes from the ./security/tomoyo source and it's dated October 2026, filed under tomoyo_file_fcntl(9) β screenshot it, cite it, slay it, bye bestie π§ββοΈβ
π¦ 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