tomoyo_merge_path2_acl(9)
π tomoyo_merge_path2_acl β the Kernel API Manual, bestie edition π
okay so this is a page from the Kernel API Manual (section 9, the kernel-api girlies know π), and today's main character is tomoyo_merge_path2_acl. Buckle up, it's a short one but it EATS. β¨
πΈ NAME πΈ
tomoyo_merge_path2_acl β merges a duplicated "struct tomoyo_path2_acl" entry. that's it, that's the whole job. lowkey iconic for it π
β¨ SYNOPSIS β¨
bool tomoyo_merge_path2_acl (struct tomoyo_acl_info *a , struct
tomoyo_acl_info *b , const bool is_delete );
copy it exactly bestie, character for character, no cap π«Ά
π¦ ARGUMENTS π¦
aβ a pointer to"struct tomoyo_acl_info". yes, the quotes are part of the bit, keep 'em πbβ another pointer to"struct tomoyo_acl_info". sibling energy fr fr.is_deleteβ the vibe check flag:truemeans it doesa &= ~b, andfalsemeans it doesa |= b. literally the whole personality of this function right here π
π DESCRIPTION π
So basically it returns true if a is empty, and false if it's not. that's the entire behavior, no extra lore, no secret sauce, we love a clean contract β¨
π SEE ALSO π
the whole friend group, and the kernel file they all live in: ./security/tomoyo/file.c. prepare to scroll, it's a long group chat π
tomoyo_put_name_union(9)tomoyo_compare_name_union(9)tomoyo_put_number_union(9)tomoyo_compare_number_union(9)tomoyo_add_slash(9)tomoyo_get_realpath(9)tomoyo_audit_path_log(9)tomoyo_audit_path2_log(9)tomoyo_audit_mkdev_log(9)tomoyo_audit_path_number_log(9)tomoyo_check_path_acl(9)tomoyo_check_path_number_acl(9)tomoyo_check_path2_acl(9)tomoyo_check_mkdev_acl(9)tomoyo_same_path_acl(9)tomoyo_merge_path_acl(9)tomoyo_update_path_acl(9)tomoyo_same_mkdev_acl(9)tomoyo_merge_mkdev_acl(9)tomoyo_update_mkdev_acl(9)tomoyo_same_path2_acl(9)tomoyo_update_path2_acl(9)tomoyo_path_permission(9)tomoyo_execute_permission(9)tomoyo_same_path_number_acl(9)tomoyo_merge_path_number_acl(9)tomoyo_update_path_number_acl(9)tomoyo_path_number_perm(9)tomoyo_check_open_permission(9)tomoyo_path_perm(9)tomoyo_mkdev_perm(9)tomoyo_path2_perm(9)tomoyo_same_mount_acl(9)tomoyo_update_mount_acl(9)tomoyo_write_file(9)
ngl, if a name isn't on this list it's not invited to the function party π
okay that's the whole page, go merge some ACLs bestie, you got this πͺπΈ
sign-off time π: this little masterpiece lives in ./security/tomoyo, and it's dated October 2026 β yes, from the future, main character energy only πβ¨π
π¦ 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