aa_alloc_root_ns(9)
β¨ aa_alloc_root_ns β the Kernel API Manual glow-up β¨
Okay bestie, gather round, because we're diving into the Kernel API Manual and today's main character is aa_alloc_root_ns. Yes, it's giving kernel-internals, yes it's lowkey iconic π
πΈ NAME πΈ
aa_alloc_root_ns β literally just allocate the root profile namespace. That's it, that's the vibe. π
π¦ SYNOPSIS π¦
int aa_alloc_root_ns (void );
No cap, this is the whole signature. Short, sweet, slays. β¨
π ARGUMENTS π
voidβ no arguments, bestie. None. Zero. Nada. It takes nothing and it's not sorry about it π
π₯ RETURN π₯
0on success π β the good ending- else error β the not-so-good ending π (i.e. anything that isn't
0means it went sideways)
π SEE ALSO π
The kernel file to go look at is ./security/apparmor/policy_ns.c, and here's the whole friend group, fr fr:
aa_ns_visible(9)aa_ns_name(9)alloc_ns(9)aa_free_ns(9)__aa_lookupn_ns(9)aa_lookupn_ns(9)__aa_find_or_create_ns(9)aa_prepare_ns(9)destroy_ns(9)__aa_remove_ns(9)__ns_list_release(9)
and that's the whole page, bestie π«Ά This little gem comes to you from ./security/apparmor in the Kernel API Manual, dated October 2026 β so go forth, allocate that root profile namespace, and stan responsibly ππ§ββοΈ
π¦ 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