aa_label_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… aa_label_match(9) πŸ’…

okay bestie, so this is a page out of the Kernel API Manual (yes, the kernel kernel, we're being ✨serious✨ today) and it's all about aa_label_match β€” literally the function that does a multi-component label match. AppArmor internals, we love to see it πŸŽ€


🌸 NAME 🌸

aa_label_match β€” do a multi-component label match πŸ¦‹


✨ SYNOPSIS ✨

int aa_label_match (const struct aa_profile *profile , struct aa_ruleset
*rules , struct aa_label *label , aa_state_t state , bool inview , u32
request , struct aa_perms *perms );

πŸ‘‘ ARGUMENTS πŸ‘‘

okay so here's the whole cast, main-character energy only πŸ’œ

  • profile β€” the profile you're matching against. NOT NULL, bestie, don't even try it πŸ™ˆ
  • rules β€” the ruleset to search. that's the vibe check zone πŸ”
  • label β€” the label to match. also NOT NULL. we said what we said πŸ’…
  • state β€” the state to start in. where we begin the journey 🧚
  • inview β€” whether to match labels in view or only in scope. it's giving "are we looking at the whole picture or just our lane" 🌈
  • request β€” the permission request. u32, she's numeric, she's important πŸ”₯
  • perms β€” returns the computed perms. NOT NULL again β€” this one's an output, so pls actually give her somewhere to live πŸ“

⭐ RETURN ⭐

it returns the state the match finished in 🫢 and heads up β€” that may literally be the none matching state. so like, no match, no drama, that's still a valid answer, ngl πŸ’€


πŸ’– SEE ALSO πŸ’–

okay this is the whole group chat of related symbols, all from the kernel file ./security/apparmor/label.c β€” and yes, we're listing every single one, no cap, nobody gets left on read 😭

also like, the source lives at ./security/apparmor β€” that's the whole directory, go explore, iykyk πŸ§šβ€β™€οΈ

aaaand that's the page, bestie!! πŸŽ€ sign-off time: this iconic little doc came out of ./security/apparmor and it's dated October 2026 β€” so like, she's fresh, she's future, she's that girl πŸ’…βœ¨ bye ily πŸ«ΆπŸ’–

πŸ“¦ where this page comes from