tomoyo_path_chmod(9)
π tomoyo_path_chmod β kernel API manual, bestie edition β¨
okay so real talk, this is a page from the Kernel API Manual and it's all about tomoyo_path_chmod, which is literally the target for security_path_chmod(). yes bestie, that's the whole name section, we move π
β¨ SYNOPSIS β¨
int tomoyo_path_chmod (const struct path *path , umode_t mode );
that's the whole signature, character for character, no notes π
π ARGUMENTS π
pathβ a pointer tostruct path. like, it points at the path, that's the vibe π¦modeβ the DAC permission mode. the actual permission bits, periodt πΈ
π₯ DESCRIPTION π₯
so what does it do? it returns 0 on success. and if things don't go your way? it returns a negative value instead. that's it, that's the whole description, no cap π
π SEE ALSO π
okay this is the part where the page just absolutely goes off, look at this squad π«Ά
- kernel file
./security/tomoyo/tomoyo.cπ 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_file_ioctl(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, every single one of them, we did not skip a single hook, iykyk π
quick vibe check: the whole point is return 0 = slay, negative = not slay. don't overthink it bestie π
β and that's the page!! sourced from ./security/tomoyo, dated October 2026, and yes it's still tomoyo_path_chmod(9) β mwah, go touch some kernel code π§ββοΈπ
π¦ 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