tomoyo_update_domain(9)
π tomoyo_update_domain π
okay so bestie, you know how the kernel has this whole security module situation going on? this is one of those internal functions from the TOMOYO Linux security module β it lives in the kernel API, no cap. it's all about updating an entry for domain policy. let me break it down for you.
β¨ SYNOPSIS β¨
int tomoyo_update_domain (struct tomoyo_acl_info *new_entry , const int
size , struct tomoyo_acl_param *param , bool (*check_duplicate)(const
struct tomoyo_acl_info *, const struct tomoyo_acl_info *) , bool
(*merge_duplicate)(struct tomoyo_acl_info *, struct tomoyo_acl_info *,
const bool) );
π ARGUMENTS π
new_entryβ a pointer tostruct tomoyo_acl_info. this is the shiny new entry you're trying to slide into the policy, bestie.sizeβ the size ofnew_entry, in bytes. like, how much space your new entry is taking up fr fr.paramβ a pointer tostruct tomoyo_acl_param. parameters for the operation, iykyk.check_duplicateβ a callback function to find a duplicated entry. think of it as a little detective that hunts for dupes πmerge_duplicateβ a callback function to merge a duplicated entry. so if there is a dupe, this one handles combining them. iconic behaviour honestly π
π¦ DESCRIPTION π¦
returns 0 on success, and a negative value otherwise. that's the whole vibe check β zero means we ate, negative means something went sideways.
important bestie: the caller holds tomoyo_read_lock. so like, don't go calling this without that lock situation sorted, okay? periodt.
πΈ SEE ALSO πΈ
the whole squad, in the kernel file ./security/tomoyo/domain.c:
tomoyo_update_policy(9)tomoyo_same_acl_head(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_find_next_domain(9)tomoyo_dump_page(9)
π« and that's the whole thing, bestie π« go off and update those domain policies. this page is from the ./security/tomoyo section of the kernel API manual, dated October 2026 β so you know it's fresh πβ¨ 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