aa_dfa_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

aa_dfa_match(9) πŸ’…βœ¨ β€” Kernel API Manual cutie

πŸ’– NAME πŸ’–

aa_dfa_match β€” traverse @dfa to find the state @str stops at. That's the whole vibe: you're walking the dfa with str and seeing where it lands πŸ’«


✨ SYNOPSIS ✨

       aa_state_t aa_dfa_match (const struct aa_dfa *dfa , aa_state_t start ,
       const char *str );

πŸŽ€ ARGUMENTS πŸŽ€

okay bestie, here's what you're feeding it:

  • dfa β€” the dfa to match str against (NOT NULL). no cap, it cannot be null.
  • start β€” the state of the dfa to start matching in.
  • str β€” the null terminated string of bytes to match against the dfa (NOT NULL). again: not null, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

aa_dfa_match will match str against the dfa and return the state it finished matching in. The final state can be used to look up the accepting label, or as the start state of a continuing match. That's it β€” that's the slay πŸ’…


🌈 RETURN 🌈

final state reached after input is consumed ✨


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./security/apparmor/match.c and the whole friend group:


Catch you later, bestie β€” source/version ./security/apparmor, date October 2026 πŸ«ΆπŸŽ€βœ¨

πŸ“¦ where this page comes from