aa_xattrs_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 fr
  • profile β€” profile to match against (NOT NULL) πŸ‘‘ again, NOT NULL, no cap
  • state β€” 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:


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