remap_dfa_accept(9)
okay so bestie, welcome to the Kernel API Manual β section 9, specifically. This page is all about remap_dfa_accept, and it's lowkey a little compatibility gremlin in the best way π
β¨
β¨ NAME β¨
remap_dfa_accept β remap old dfa accept table to be an index. That's the whole name, no cap. π
πΈ SYNOPSIS πΈ
void remap_dfa_accept (struct aa_dfa *dfa , unsigned int factor );
π ARGUMENTS π
dfaβ the dfa you're doing the remapping on. Yes, that dfa. π«Άfactorβ the scaling factor for the index conversion. Math-ish era, honestly. β¨
π¦ DESCRIPTION π¦
Okay so here's the vibe: this function is used in conjunction with compute_Xperms. Together they convert old style perms β the ones encoded in the dfa accept tables β into the new style. In the new style there's a permission table, and the accept table is an index into that permission table. It's giving "makeover montage, but for kernel data structures" π₯π
π SEE ALSO π
- Kernel file
./security/apparmor/policy_compat.cβ go say hi tomap_old_perms(9)andcompute_fperms(9)too π«ΆπΈ
mwah π this page lives under ./security/apparmor, it's dated October 2026, and it's forever remap_dfa_accept(9) β byeeee π¦β¨
π¦ 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