__ns_list_release(9)
β¨ __ns_list_release (9) β¨
okay so bestie, welcome to the Kernel API Manual β section 9, we're in the kernel zone now π this one lives in ./security/apparmor/policy_ns.c and it's lowkey iconic.
πΈ NAME πΈ
__ns_list_release β remove all profile namespaces on the list put refs π
that's the whole vibe, fr fr.
π SYNOPSIS π
void __ns_list_release (struct list_head *head );
no cap, that's the entire signature. short and slay β¨
π¦ ARGUMENTS π¦
headβ list of profile namespaces β and listen, it's(NOT NULL), so do not come in here with aNULLand expect anything cute to happen π iykyk.
π DESCRIPTION π
okay so the requirement, and this is the main character rule of this whole page:
Requires: namespace lock be held π
like, the namespace lock. you hold it. before you call this. periodt. don't be out here releasing namespaces with the lock un-held, that's not the move bestie π
what it actually does: removes all profile namespaces on the list, and puts the refs π«Ά
π SEE ALSO π
this is the group chat of related functions, all from ./security/apparmor/policy_ns.c:
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)aa_alloc_root_ns(9)
go read them, they ate π
mwah π that's the page. sourced straight from ./security/apparmor, dated October 2026 β and it's still __ns_list_release(9) at the end of the day. stay locked, stay hydrated, and hold that namespace lock π§ββοΈβ¨
π¦ 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