__aa_lookupn_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Okay bestie, this is the __aa_lookupn_ns(9) page from the Kernel API Manual, and it’s giving β€œfind that namespace” main-character energy ✨

πŸŽ€ NAME πŸŽ€

__aa_lookupn_ns β€” lookup the namespace matching @hname. That’s the whole vibe: you got a hierarchical name, you want the ns. Slay.

πŸ¦‹ SYNOPSIS πŸ¦‹

struct aa_ns * __aa_lookupn_ns (struct aa_ns *view , const char *hname ,
size_t n );

πŸ’… ARGUMENTS πŸ’…

  • view β€” namespace to search in (NOT NULL). Like, you need a place to look, bestie.
  • hname β€” hierarchical ns name (NOT NULL). The name has layers, it’s giving tree.
  • n β€” length of hname. Yes, she needs the length.

🌸 DESCRIPTION 🌸

Requires: rcu_read_lock be held. Not optional. No cap.

It does a relative name lookup, recursing through profile tree. That’s it β€” cute little recursive search through the tree.

πŸ”₯ RETURN πŸ”₯

It returns an unrefcounted ns pointer, or NULL if not found. Unrefcounted is the keyword, okay? Pay attention to that.

🌈 SEE ALSO 🌈

Mwah πŸ’‹ β€” this page’s source is ./security/apparmor, and it’s dated October 2026. Bye bestie, go look up those namespaces and absolutely ate 🫢

πŸ“¦ where this page comes from