tomoyo_get_exe(9)
π 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 useskzalloc, so if it didn't returnNULL, you (the caller) have to callkfree. 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 πΈ
tomoyo_convert_time(9)tomoyo_permstr(9)tomoyo_read_token(9)tomoyo_get_domainname(9)tomoyo_parse_ulong(9)tomoyo_print_ulong(9)tomoyo_parse_name_union(9)tomoyo_parse_number_union(9)tomoyo_byte_range(9)tomoyo_alphabet_char(9)tomoyo_make_byte(9)tomoyo_valid(9)tomoyo_invalid(9)tomoyo_str_starts(9)tomoyo_normalize_line(9)tomoyo_correct_word2(9)tomoyo_correct_word(9)tomoyo_correct_path2(9)tomoyo_correct_path(9)tomoyo_correct_domain(9)tomoyo_domain_def(9)tomoyo_find_domain(9)tomoyo_const_part_length(9)tomoyo_fill_path_info(9)tomoyo_file_matches_pattern2(9)tomoyo_file_matches_pattern(9)tomoyo_path_matches_pattern2(9)tomoyo_path_matches_pattern(9)tomoyo_get_mode(9)tomoyo_init_request_info(9)tomoyo_domain_quota_is_ok(9)
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
- 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