tomoyo_update_policy(9)
π tomoyo_update_policy(9) β like, the glow-up era of the Kernel API Manual β¨
okay so bestie, buckle up π this one's from the Kernel API Manual and it's literally all about updating an entry for exception policy. short page, yes, but every single crumb matters, so let's not skip a thing π
πΈ NAME πΈ
tomoyo_update_policy β update an entry for exception policy, no cap π«
β¨ SYNOPSIS β¨
int tomoyo_update_policy (struct tomoyo_acl_head *new_entry , const int
size , struct tomoyo_acl_param *param , bool (*check_duplicate)(const
struct tomoyo_acl_head *, const struct tomoyo_acl_head *) );
like, that's the whole signature, she's a little long but she ate π«Ά keep it exactly as-is, okay?
π¦ ARGUMENTS π¦
new_entryβ pointer to"struct tomoyo_acl_info". yes, the quotes are part of the lore πsizeβ the size ofnew_entry, measured in bytes πparamβ pointer to"struct tomoyo_acl_param"πcheck_duplicateβ a callback function whose whole job is finding duplicated entries π (iconic behaviour, honestly)
π DESCRIPTION π
So here's the vibe check: it returns 0 on success, and a negative value otherwise π that's it, that's the return contract, fr fr.
Also β and this is the important bit β the caller holds tomoyo_read_lock π₯ like, that's a given going in, not something this function does for you. noted. π
no extra lore was provided beyond this, so I'm not gonna invent any, bestie π§ that's the whole description, periodt.
π SEE ALSO π
like a whole friend group, honestly π«Ά all from the Kernel file ./security/tomoyo/domain.c:
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_find_next_domain(9)tomoyo_dump_page(9)
and that's the page!! πβ¨ little sign-off for you: this one lives in ./security/tomoyo and it's dated October 2026 π so yes, future-coded queen behavior. go forth and update those policy entries, bestie π¦π
π¦ 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