aa_dfa_unpack(9)
aa_dfa_unpack π§
okay so bestie, this is aa_dfa_unpack from the Kernel API Manual, and it's literally the moment a serialized dfa gets unpacked. β¨
NAME πΈ
aa_dfa_unpack β unpack the binary tables of a serialized dfa
SYNOPSIS π
struct aa_dfa * aa_dfa_unpack (const void *blob , size_t size , int flags );
ARGUMENTS π
blobβ aligned serialized stream of data to unpack (NOT NULL). no cap, this one is required.sizeβ size of data to unpack.flagsβ flags controlling what type of accept tables are acceptable.
DESCRIPTION π¦
Unpack a dfa that has been serialized. For the tea on the dfa format, look in Documentation/admin-guide/LSM/apparmor.rst.
Tiny but important vibe check: it assumes the dfa blob stream has been aligned on a 8 byte boundary.
RETURN π₯
an unpacked dfa ready for matching or ERR_PTR on failure. That's the whole mood: either you get the matching-ready dfa, or ERR_PTR if it flops.
SEE ALSO π
Kernel file ./security/apparmor/match.c, plus these iconically linked functions:
unpack_table(9)verify_table_headers(9)verify_dfa(9)dfa_free(9)aa_dfa_free_kref(9)remap_data16_to_data32(9)aa_dfa_match_len(9)aa_dfa_match(9)aa_dfa_next(9)aa_dfa_match_until(9)aa_dfa_matchn_until(9)aa_dfa_leftmatch(9)
π that's the page, bestie β brought to you from ./security/apparmor, dated October 2026, for the aa_dfa_unpack(9) manual. π«Ά
π¦ 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