aa_lookupn_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


okay that's the whole page, bestie πŸ’– source/version: ./security/apparmor; date: October 2026 β€” slay and read the source βœ¨πŸ’…

πŸ“¦ where this page comes from