verify_dfa(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is verify_dfa(9) from the Kernel API Manual πŸ’– and we are about to vibe-check some tables. The assignment? Verify that transitions and states in the tables are in bounds. It’s giving β€œtable babysitter with main character energy,” honestly. πŸŽ€

✨ NAME ✨

verify_dfa β€” verify that transitions and states in the tables are in bounds. No cap, that’s the whole job. πŸ’…

🌸 SYNOPSIS 🌸

int verify_dfa (const struct aa_dfa *dfa );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dfa β€” the dfa to test, and it is NOT NULL (do not come in here with a null dfa, bestie πŸ’€).

πŸ’œ DESCRIPTION πŸ’œ

This function assumes dfa has gone through the first pass verification done by unpacking. So unpacking already did its little first-pass thing, and now verify_dfa is here for the bounds-check moment. Periodt. ✨

πŸ”₯ NOTE πŸ”₯

Heads up, bestie: this does not valid accept table values. That’s the caveat β€” keep it in mind. πŸ™ˆ

🌈 RETURN 🌈

Returns 0, else an error code on failure to verify. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./security/apparmor/match.c and all these iconic little references:


mwah πŸ’‹ this page’s source/version is ./security/apparmor, dated October 2026, and it’s signed verify_dfa(9) 🫢

πŸ“¦ where this page comes from