tomoyo_same_path2_acl(9)
π tomoyo_same_path2_acl β Kernel API Manual π
okay so bestie, welcome to the tomoyo_same_path2_acl(9) page β¨ this is a little kernel-API moment from the Kernel API Manual, and honestly? it's giving "tiny function, big responsibilities." let's get into it π¦
πΈ NAME πΈ
tomoyo_same_path2_acl β the girl whose whole job is checking for a duplicated "struct tomoyo_path2_acl" entry π no cap, that's the entire gig.
β¨ SYNOPSIS β¨
bool tomoyo_same_path2_acl (const struct tomoyo_acl_info *a , const
struct tomoyo_acl_info *b );
look at her go π she takes two struct tomoyo_acl_info pointers and hands you back a bool. iconic signature, fr fr π
π«Ά ARGUMENTS π«Ά
aβ Pointer to"struct tomoyo_acl_info". (yes, it's literally just a pointer to astruct tomoyo_acl_info. she said "keep it simple" π )bβ Pointer to"struct tomoyo_acl_info". (same energy, different variable name πΈ)
π DESCRIPTION π
Returns true if a == b except permission bits, and false otherwise.
that's it. that's the whole function. she compares the two, ignores the permission bits on purpose (main character boundary-setting energy π), and gives you a straight true/false answer. no drama, no guessing, no ambiguous vibes. periodt π
ngl bestie, "except permission bits" is doing a LOT of work in that sentence, so don't sleep on it β the comparison is not a straight-up full equality check π
π SEE ALSO π
Kernel file ./security/tomoyo/file.c, plus the whole friend group π:
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_merge_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)
like, the whole security/tomoyo clique showed up to the group chat π obsessed π¦
okay bestie that's the page π super short, super specific, and honestly kind of a slay for a comparison helper. this one lives in ./security/tomoyo and the version tag on it is October 2026 β so yeah, mark your calendar, she's from the future πΈβ¨ mwah, go read the rest of the (9) pages, iykyk π
π
π¦ 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