aa_map_resource(9)
okay bestie, welcome to the Kernel API Manual β this is the page for aa_map_resource(9), and it's giving βmap compiled policy resource to internal #β energy. πβ¨
π NAME π
aa_map_resource β map compiled policy resource to internal #. π
β¨ SYNOPSIS β¨
int aa_map_resource (int resource );
short, iconic, no cap. π«Ά
π ARGUMENTS π
resourceβ flattened policy resource number. π
πΈ RETURN πΈ
It hands back the resource # for the current architecture β that's literally the return value. periodt. β¨
π¦ DESCRIPTION π¦
okay so here's the tea: the rlimit resource can vary based on architecture, so this maps the compiled policy resource # to the internal representation for the architecture. lowkey the whole point is that architecture-aware mapping, fr fr. π¦
π₯ SEE ALSO π₯
- Kernel file
./security/apparmor/resource.c audit_resource(9)aa_task_setrlimit(9)__aa_transition_rlimits(9)
go read those, bestie β iykyk π
cute little sign-off: source/version is ./security/apparmor, the date is October 2026, and this icon is aa_map_resource(9). byeee, stay 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