tomoyo_path_matches_group(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🌈

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