tomoyo_get_exe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tomoyo_get_exe β€” the Kernel API Manual page, bestie edition πŸ’–

okay so real talk, we're in the tomoyo_get_exe(9) era and honestly? it's giving "tiny function, big responsibility." let me walk you through it 🫢


✨ NAME ✨

tomoyo_get_exe β€” it grabs the tomoyo_realpath() of the current process, no cap πŸ’…


✨ SYNOPSIS ✨

const char * tomoyo_get_exe (void );

✨ ARGUMENTS ✨

  • void β€” literally no arguments. zero. zilch. the friend group is you and the function alone πŸŽ€

✨ DESCRIPTION ✨

so what it does: if everything goes right, it hands you back the tomoyo_realpath of the current process. and if it doesn't work out? you get NULL. that's the whole vibe check 😭

⚠️ okay bestie this is the important part, do NOT skip it: this function uses kzalloc, so if it didn't return NULL, you (the caller) have to call kfree. the memory is yours now. it's your child. you must release it. not me, not the function β€” you. no cap πŸ’€

✨ SEE ALSO ✨

the whole squad, all in Kernel file ./security/tomoyo/util.c β€” every one of these is invited to the group chat 🌸


and that's the whole page, icon ✨ this lil beauty lives over in ./security/tomoyo, and it was last touched October 2026 β€” so go forth, call tomoyo_get_exe(9), and please remember the kfree bestie, i'm begging πŸ§šπŸ’œπŸŽ€

πŸ“¦ where this page comes from