label_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is label_match(9) from the Kernel API Manual ✨ and it does a multi-component label match β€” lowkey iconic, highkey essential πŸ’….

🌸 SYNOPSIS 🌸

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

πŸŽ€ ARGUMENTS πŸŽ€

here's the whole cast, fr fr:

  • profile β€” profile to match against, NOT NULL. no cap, it's required πŸ’….
  • label β€” label to match, NOT NULL too. bestie, it's mandatory 🫢.
  • stack β€” whether this is a stacking request. yes, that's the vibe πŸ¦‹.
  • state β€” state to start in.
  • inview β€” whether to match labels in view or only in scope. iykyk 🌸.
  • request β€” permission request.
  • perms β€” Returns computed perms. NOT NULL, so don't skip it πŸ™ˆ.

✨ RETURN ✨

the state the match finished in, may be the none matching state 😭. that's the return vibe β€” periodt.

πŸ¦‹ SEE ALSO πŸ¦‹

the bestie roster, no cap:


xoxo bestie 🫢 source/version: ./security/apparmor; dated October 2026; page: label_match(9) ✨

πŸ“¦ where this page comes from