tomoyo_get_absolute_path(9)
π¦ tomoyo_get_absolute_path(9) π¦
okay bestie, welcome to the Kernel API Manual β yes that's the manual name, it's giving official π
β and today's main character is tomoyo_get_absolute_path. she's a little function with one very specific job and honestly? she ate.
β¨ NAME β¨
tomoyo_get_absolute_path β Get the path of a dentry but ignores chroot'ed root.
like, she'll give you the path, but she is literally not interested in your chroot'ed root. not her problem. not her business. π
π SYNOPSIS π
char * tomoyo_get_absolute_path (const struct path *path , char * const buffer , const int buflen );
that's the whole vibe. three arguments, one char * coming back at you. no cap. β¨
πΈ ARGUMENTS πΈ
pathβ Pointer to"struct path". this is the dentry situation you're asking about, bestie. π«Άbufferβ Pointer to buffer to return value in. she's gonna write the answer in here, so pls actually give her somewhere to live.buflenβ Sizeof buffer. literally just how big your buffer is. she needs to know. don't lie to her. π
π DESCRIPTION π
Returns the buffer on success, an error code otherwise.
so like β slay, you get your buffer back and everything is iconic. but if something goes wrong? you get an error code instead. that's the vibe check and you did not pass it. π
If dentry is a directory, trailing / is appended.
yup, she adds the little slash at the end when it's a directory, because she's thoughtful like that. π a tiny finishing touch. the ribbon on the gift. obsessed.
β SEE ALSO β
Kernel file ./security/tomoyo/realpath.c β go read the source, it's right there, iykyk π
tomoyo_encode2(9)tomoyo_encode(9)tomoyo_get_dentry_path(9)tomoyo_get_local_path(9)tomoyo_realpath_from_path(9)tomoyo_realpath_nofollow(9)
the whole friend group fr fr. go say hi. π
lowkey reminder bestie: this page lives in./security/tomoyo, and it's dated October 2026, and yeah the page itself istomoyo_get_absolute_path(9)β she's booked and busy in the Kernel API Manual. πβ¨ no cap, that's the whole thing. 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