tomoyo_find_next_domain(9)
π tomoyo_find_next_domain β the NAME bit β¨
okay so bestie, this whole page is about tomoyo_find_next_domain(9) β which, as the name literally screams, is the function that finds a domain. that's it, that's the vibe. it lives in the <pink>Kernel API Manual</pink> (that's the manual name, folding it in right here so you're not confused π«Ά).
πΈ SYNOPSIS πΈ
int tomoyo_find_next_domain (struct linux_binprm *bprm );
like, it takes one thing and returns an int. simple. iconic. no notes. π
π ARGUMENTS π
bprmβ this is a pointer to"struct linux_binprm". that's literally all the original says about it and i'm not gonna make stuff up, so: it's a pointer to astruct linux_binprm. slay. β¨
π¦ DESCRIPTION π¦
here's the tea: it returns 0 on success, and a negative value otherwise π. negative = not it, babes.
also super important β the caller holds tomoyo_read_lock. like, that's a requirement, not a suggestion. you don't hold it, you're not built for this. ππ
π SEE ALSO π
the little kernel file this all lives in is ./security/tomoyo/domain.c, and honestly the whole friend group shows up here:
tomoyo_update_policy(9)tomoyo_same_acl_head(9)tomoyo_update_domain(9)tomoyo_check_acl(9)tomoyo_last_word(9)tomoyo_same_transition_control(9)tomoyo_write_transition_control(9)tomoyo_scan_transition(9)tomoyo_transition_type(9)tomoyo_same_aggregator(9)tomoyo_write_aggregator(9)tomoyo_find_namespace(9)tomoyo_assign_namespace(9)tomoyo_namespace_jump(9)tomoyo_assign_domain(9)tomoyo_environ(9)tomoyo_dump_page(9)
that's seventeen (17) cross-references bestie, i did not skip one, i would never π«Άβ¨
and that's the whole page!! π§π this little cutie is served to you from the ./security/tomoyo corner of the kernel, dated October 2026, and it's all under the same tomoyo_find_next_domain(9) banner you saw at the top β go be a main character in the security subsystem, ily, bye ππ
π¦ 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