aa_lookupn_ns(9)
π aa_lookupn_ns(9) π
okay so bestie, we're in the Kernel API Manual and this page is all about aa_lookupn_ns(9) β a policy namespace lookup relative to @view. no cap, it's a tiny function with a refcounted return π«Ά
β¨ NAME β¨
aa_lookupn_ns β look up a policy namespace relative to @view.
πΈ SYNOPSIS πΈ
struct aa_ns * aa_lookupn_ns (struct aa_ns *view , const char *name ,
size_t n );
π ARGUMENTS π
viewβ namespace to search in (NOT NULL)nameβ name of namespace to find (NOT NULL)nβ length of name
π₯ RETURN π₯
You get a refcounted namespace on the list, or NULL if no namespace called name exists. periodt β¨
π DESCRIPTION π
The description is literally just: refcount released by caller. don't leave that refcount hanging, bestie π
π¦ SEE ALSO π¦
Kernel file ./security/apparmor/policy_ns.c β the whole friend group:
aa_ns_visible(9)aa_ns_name(9)alloc_ns(9)aa_free_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)aa_alloc_root_ns(9)
okay that's the whole page, bestie π source/version: ./security/apparmor; date: October 2026 β slay and read the source β¨π
π¦ 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