label_match(9)
π 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:
- Kernel file
./security/apparmor/domain.cβmay_change_ptraced_domain(9) label_compound_match(9)label_components_match(9)change_profile_perms(9)aa_xattrs_match(9)find_attach(9)x_table_lookup(9)x_to_label(9)apparmor_bprm_creds_for_exec(9)aa_change_hat(9)aa_change_profile(9)
xoxo bestie π«Ά source/version: ./security/apparmor; dated October 2026; page: label_match(9) β¨
π¦ 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