remap_dfa_accept(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 πŸ’œ


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