__aa_remove_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __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 passing NULL, bestie, that is not the vibe πŸ™ˆ

🧚 DESCRIPTION 🧚

Okay so the requirements here are non-negotiable, iykyk:

  • you must be holding ns->parent->lock πŸ”’
  • and ns must 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:


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