aa_unpack_nameX(9)
π aa_unpack_nameX(9) β the kernel API manual, bestie edition π
okay so this is aa_unpack_nameX(9) from the Kernel API Manual, and honestly? it's a little vibe-check function that peeks at the next thing in your serialized stream and goes "hmm, are you the type I'm looking for, and do you have the right name?" π¦
β¨ NAME β¨
aa_unpack_nameX β literally checks whether the next element is of type X and has a name of @name. that's it. that's the whole job. π
πΈ SYNOPSIS πΈ
VISIBLE_IF_KUNIT bool aa_unpack_nameX (struct aa_ext *e , enum aa_code
code , const char *name );
π ARGUMENTS π
eβ the serialized data extent information. NOT NULL, bestie, don't even try it πcodeβ the type code. slay, tell it what type you expect β¨nameβ the name to match against the serialized element. MAYBE NULL, so like... optional, we love flexibility π
π DESCRIPTION π
so what it actually does: it checks that the next serialized data element is of type X and has a tag name of name. π«Ά
if name is specified, then there must be a matching name element in the stream β no matching name, no deal, periodt. if name is NULL, any name element will be skipped and only the typecode gets tested. lowkey chill of it. β
returns true on success β meaning both the type code test and the name test match β and the read head is advanced past the headers. the read head moved on, main character energy, it's thriving π
π₯ RETURN π₯
false if either match fails, and the read head does not move. it stays right where it is, respectfully. π
π§ SEE ALSO π§
Kernel file ./security/apparmor/policy_unpack.c plus the whole friend group:
audit_iface(9)aa_unpack_u16_chunk(9)unpack_dfa(9)unpack_strs_table(9)unpack_profile(9)verify_header(9)verify_dfa_accept_index(9)verify_profile(9)aa_unpack(9)
iykyk π
and that's the page!! π brought to you by ./security/apparmor, October 2026 β mwah, take care of her, she's iconic πβ¨
π¦ 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