tomoyo_write_file(9)
π tomoyo_write_file β like, the whole Kernel API Manual moment, bestie π
okay so this is tomoyo_write_file(9) from the Kernel API Manual, and before you ask β yes, it's a kernel function, yes it's serious, and yes we're gonna make it make sense. π
β¨ NAME β¨
tomoyo_write_file β update file related list. that's it, that's the vibe. a little update, a little list, a little file-related slay. π
πΈ SYNOPSIS πΈ
int tomoyo_write_file (struct tomoyo_acl_param *param );
one function, one param, one return type. clean. iconic. no notes. β¨
π¦ ARGUMENTS π¦
paramβ a pointer to"struct tomoyo_acl_param". yes bestie, it's a pointer, and yes it points at that exact struct. don't get cute and pass something else, i'm literally begging. π
π DESCRIPTION π
so here's the tea: it returns 0 on success, and a negative value otherwise. that's the whole contract β zero means we ate, negative means something went sideways. π
and the important part, the part you cannot skip, the part that's giving main character energy:
the caller holds tomoyo_read_lock. like, you, the caller. you're holding it. it's your responsibility. no cap. π₯
π«Ά SEE ALSO π«Ά
Kernel file ./security/tomoyo/file.c β and then the whole extended friend group, all of them, in order, no one gets left out:
tomoyo_put_name_union(9)tomoyo_compare_name_union(9)tomoyo_put_number_union(9)tomoyo_compare_number_union(9)tomoyo_add_slash(9)tomoyo_get_realpath(9)tomoyo_audit_path_log(9)tomoyo_audit_path2_log(9)tomoyo_audit_mkdev_log(9)tomoyo_audit_path_number_log(9)tomoyo_check_path_acl(9)tomoyo_check_path_number_acl(9)tomoyo_check_path2_acl(9)tomoyo_check_mkdev_acl(9)tomoyo_same_path_acl(9)tomoyo_merge_path_acl(9)tomoyo_update_path_acl(9)tomoyo_same_mkdev_acl(9)tomoyo_merge_mkdev_acl(9)tomoyo_update_mkdev_acl(9)tomoyo_same_path2_acl(9)tomoyo_merge_path2_acl(9)tomoyo_update_path2_acl(9)tomoyo_path_permission(9)tomoyo_execute_permission(9)tomoyo_same_path_number_acl(9)tomoyo_merge_path_number_acl(9)tomoyo_update_path_number_acl(9)tomoyo_path_number_perm(9)tomoyo_check_open_permission(9)tomoyo_path_perm(9)tomoyo_mkdev_perm(9)tomoyo_path2_perm(9)tomoyo_same_mount_acl(9)tomoyo_update_mount_acl(9)
like, that's a squad. iykyk. π
and that's the page, bestie π β brought to you by the good people over at ./security/tomoyo, dated October 2026, and signed tomoyo_write_file(9) with love. go hold that tomoyo_read_lock responsibly. mwah. ππ§ββοΈ
π¦ 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