tomoyo_path_rename(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to struct path. yes bestie, capital-P Pointer, it's giving "handle with care" energy πŸ‘‘
  • old_dentry β€” a pointer to struct dentry. the og dentry, the one we're moving away from πŸ’«
  • new_parent β€” a pointer to struct path, again. this one's the destination parent, main character energy fr fr 🌈
  • new_dentry β€” a pointer to struct dentry. the dentry on the other side of the glow-up πŸ¦‹
  • flags β€” the rename options, typed as const 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:


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