tomoyo_find_domain_by_qid(9)
π tomoyo_find_domain_by_qid(9) β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual π this one's a lil function from the TOMOYO security corner of the kernel and it's shorter than my attention span, so let's go β¨
πΈ NAME πΈ
tomoyo_find_domain_by_qid β literally "get domain by query id" π that's the whole vibe. you hand it a query id, it goes and finds you the domain. iconic behavior tbh.
β¨ SYNOPSIS β¨
struct tomoyo_domain_info * tomoyo_find_domain_by_qid (unsigned int
serial );
yes the line break is real, she's just built like that π
note the return type is struct tomoyo_domain_info * and the one arg is an unsigned int named serial, no cap.
π«Ά ARGUMENTS π«Ά
serialβ the Query ID, and it's assigned bytomoyo_supervisor. that's the whole thing. one (1) argument. she's low maintenance π
π¦ DESCRIPTION π¦
so what does she actually do? she returns a pointer to "struct tomoyo_domain_info" if the thing is found, and NULL otherwise. that's it. that's the function. main character energy with a two-line job description ngl π₯
fr fr, remember: NULL means not found β so always vibe check the pointer before you dereference it, bestie π
π SEE ALSO π
okay so this is the part where the manpage goes absolutely feral β the whole ./security/tomoyo/common.c friend group shows up. Kernel file ./security/tomoyo/common.c and like every sibling in the file:
tomoyo_addprintf(9),tomoyo_flush(9),tomoyo_set_string(9),tomoyo_io_printf(9)tomoyo_set_space(9),tomoyo_set_lf(9),tomoyo_set_slash(9)tomoyo_init_policy_namespace(9),tomoyo_print_namespace(9),tomoyo_print_name_union(9),tomoyo_print_name_union_quoted(9)tomoyo_print_number_union_nospace(9),tomoyo_print_number_union(9)tomoyo_assign_profile(9),tomoyo_profile(9),tomoyo_find_yesno(9),tomoyo_set_uint(9),tomoyo_set_mode(9),tomoyo_write_profile(9),tomoyo_print_config(9),tomoyo_read_profile(9)tomoyo_same_manager(9),tomoyo_update_manager_entry(9),tomoyo_write_manager(9),tomoyo_read_manager(9),tomoyo_manager(9)tomoyo_select_domain(9),tomoyo_same_task_acl(9),tomoyo_write_task(9),tomoyo_delete_domain(9)tomoyo_write_domain2(9),tomoyo_write_domain(9),tomoyo_print_condition(9),tomoyo_set_group(9),tomoyo_print_entry(9),tomoyo_read_domain2(9),tomoyo_read_domain(9)tomoyo_write_pid(9),tomoyo_read_pid(9),tomoyo_write_exception(9),tomoyo_read_group(9),tomoyo_read_policy(9),tomoyo_read_exception(9)tomoyo_truncate(9),tomoyo_numscan(9),tomoyo_patternize_path(9),tomoyo_add_entry(9)tomoyo_supervisor(9),tomoyo_poll_query(9),tomoyo_read_query(9),tomoyo_write_answer(9)tomoyo_read_version(9),tomoyo_update_stat(9),tomoyo_read_stat(9),tomoyo_write_stat(9)tomoyo_open_control(9),tomoyo_poll_control(9),tomoyo_set_namespace_cursor(9),tomoyo_has_more_namespace(9),tomoyo_read_control(9)tomoyo_parse_policy(9),tomoyo_write_control(9),tomoyo_close_control(9),tomoyo_check_profile(9),tomoyo_load_builtin_policy(9)
like I said. the entire group chat. iykyk ππ
so yeah, that's the page π sourced from ./security/tomoyo, dated October 2026, and this lil kernel API manual entry is a whole mood. go read your pointers, bestie, and slay πβ¨π¦
π¦ 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