tomoyo_path_matches_group(9)
π tomoyo_path_matches_group β¨
ok so bestie, welcome to the Kernel API Manual, section 9 β yes we're in the kernel kernel, put your hair up, we're doing TOMOYO security module things π
πΈ NAME πΈ
tomoyo_path_matches_group β the little function that checks whether the pathname you handed it matches any of the members of the pathname group you also handed it. like a vibe check, but for paths π
π¦ SYNOPSIS π¦
const struct tomoyo_path_info * tomoyo_path_matches_group (const struct
tomoyo_path_info *pathname , const struct tomoyo_group *group );
no cap, that's the whole signature, copy it exactly bestie π«Ά
π ARGUMENTS π
pathnameβ the name of the pathname. (yes, the manpage literally says "The name of pathname." and honestly? iconic, we're keeping it π )groupβ a pointer to"struct tomoyo_path_group". that's your group, your squad, your pathname group π₯
β DESCRIPTION β
okay so here's the tea β β this function returns the matched member's pathname if pathname matches pathnames in group... and returns NULL otherwise. that's it, that's the whole personality π¦
and the important bit, the caller holds tomoyo_read_lock β that's on you, bestie, this function is not grabbing that lock for you, so don't come crying to me when it goes sideways ππ
π SEE ALSO π
- Kernel file
./security/tomoyo/group.c tomoyo_same_path_group(9)tomoyo_same_number_group(9)tomoyo_same_address_group(9)tomoyo_write_group(9)tomoyo_number_matches_group(9)tomoyo_address_matches_group(9)
go read those too, iykyk π
lowkey reminder: NULL means no match, not an error, so check your return value before you do anything main-character with it π§
and that's the whole page, bestie!! mwah π this one's from the ./security/tomoyo source tree, dated October 2026, and it lives at tomoyo_path_matches_group(9) β see u in the next manpage, slay πβ¨π
π¦ 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