__ns_list_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __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 a NULL and 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:

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