__aa_find_or_create_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __aa_find_or_create_ns(9) ✨

okay so bestie, this is from the Kernel API Manual, and the function is literally __aa_find_or_create_ns β€” it's giving β€œcreate an ns, fail if it already exists” energy. πŸ¦‹


🌸 NAME 🌸

__aa_find_or_create_ns β€” create an ns, fail if it already exists. no cap, that's the whole vibe. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

struct aa_ns * __aa_find_or_create_ns (struct aa_ns *parent , const char
       *name , struct dentry *dir );

πŸ’– ARGUMENTS πŸ’–

  • parent β€” the parent of the namespace being created. πŸ‘‘
  • name β€” the name of the namespace. πŸŽ€
  • dir β€” if it's not null, this is the dir to put the ns entries in. πŸ—‚οΈ

πŸ”₯ RETURN πŸ”₯

You get back the a refcounted ns that has been add or an ERR_PTR. That's the return, bestie β€” iconic wording, honestly. 😭

πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./security/apparmor/policy_ns.c β€” go read it, iykyk:


mwah πŸ’‹ β€” source/version: ./security/apparmor; date: October 2026; icon: __aa_find_or_create_ns(9). periodt. 🫢

πŸ“¦ where this page comes from