tomoyo_path_rename(9)
π tomoyo_path_rename(9) β like, the whole vibe
okay so bestie, welcome to the Kernel API Manual β¨ this one's called tomoyo_path_rename, and it's literally the target for security_path_rename(). that's it. that's the whole name section, we ate π
β¨ SYNOPSIS β¨
int tomoyo_path_rename (const struct path *old_parent , struct dentry
*old_dentry , const struct path *new_parent , struct dentry *new_dentry
, const unsigned int flags );
no cap, that's the whole signature β five args, one int coming back at you π«Ά
π ARGUMENTS π
old_parentβ a pointer tostruct path. yes bestie, capital-P Pointer, it's giving "handle with care" energy πold_dentryβ a pointer tostruct dentry. the og dentry, the one we're moving away from π«new_parentβ a pointer tostruct path, again. this one's the destination parent, main character energy fr fr πnew_dentryβ a pointer tostruct dentry. the dentry on the other side of the glow-up π¦flagsβ the rename options, typed asconst unsigned int. lowkey just the vibes of how we're renaming π
πΈ DESCRIPTION πΈ
Returns 0 on success, and a negative value otherwise. that's the whole description, and honestly? iconic. short, sweet, no notes π
β tiny vibe check: 0 means slayed, negative means something went sideways. it's not gonna sugarcoat it for you.
π₯ SEE ALSO π₯
bestie there are SO many siblings, buckle up. the kernel file is ./security/tomoyo/tomoyo.c, and it references:
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_file_fcntl(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)
and that's the whole page, bestie, go forth and rename responsibly π
sign-off szn: this lil masterpiece lives in ./security/tomoyo, dated October 2026, and yes it's still called tomoyo_path_rename(9) β periodt πβ¨
π¦ 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