aa_xattrs_match(9)
π NAME π
okay so this is aa_xattrs_match(9), straight outta the Kernel API Manual π
and it does exactly what the name says: it checks whether a file matches the xattrs defined in profile. slay.
β¨ SYNOPSIS β¨
int aa_xattrs_match (const struct path *path , const struct aa_profile
*profile , aa_state_t state );
π ARGUMENTS π
pathβ path for file being matched (NOT NULL) π«Ά like bestie this one literally cannot be NULL, fr frprofileβ profile to match against (NOT NULL) π again,NOT NULL, no capstateβ state to start match in πΈ
π RETURN π
it returns the number of extended attributes that matched β¨ or < 0 on error π so if you see a negative number, that's not a count, that's the error vibe check failing π
π¦ SEE ALSO π¦
go peek at these icons π the kernel file ./security/apparmor/domain.c is in the mix too:
may_change_ptraced_domain(9)label_compound_match(9)label_components_match(9)label_match(9)change_profile_perms(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)
mwah π source/version: ./security/apparmor; date: October 2026; and yeah bestie, this is the aa_xattrs_match(9) page. byeee π«Ά
π¦ 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