__aa_remove_ns(9)
π
__aa_remove_ns β Kernel API Manual, bestie edition π
okay so welcome to the __aa_remove_ns(9) page, part of the Kernel API Manual β¨ this one's short and sweet but she is IMPORTANT, so pay attention fr fr.
β¨ NAME β¨
__aa_remove_ns β the icon that removes a namespace and, like, all its children too π no namespace left behind, periodt.
π¦ SYNOPSIS π¦
void __aa_remove_ns (struct aa_ns *ns );
like literally that's the whole signature, she's a void so she gives nothing back, she just does π
πΈ ARGUMENTS πΈ
nsβ the namespace to be removed. NOT NULL π¨ like do not even think about passingNULL, bestie, that is not the vibe π
π§ DESCRIPTION π§
Okay so the requirements here are non-negotiable, iykyk:
- you must be holding
ns->parent->lockπ - and
nsmust already be removed from its parent
That's it. That's the whole description. Short queen energy β but you cannot skip the setup steps or it's giving undefined behaviour π
ngl the function does the job, but you have to hold the lock and do the parent-removal first. She's not doing your homework for you π«Ά
π SEE ALSO π
The kernel file lives at ./security/apparmor/policy_ns.c β go read it, it's iconic π and then go bother her friends:
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)__ns_list_release(9)aa_alloc_root_ns(9)
mwah π that's the page! brought to you by ./security/apparmor, dated October 2026 β yes that October 2026 π this manual page ate and left no crumbs, no cap π stay locked, stay parentless (namespace-wise), and slay β¨πππ¦πΈπ
π«Άππ₯ππβπππ§π
π¦ 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