aa_lookupn_profile(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to aa_lookupn_profile(9) from the Kernel API Manual β€” this icon is literally here to find a profile by its full or partial name. periodt. ✨

✨ SYNOPSIS ✨

struct aa_profile * aa_lookupn_profile (struct aa_ns *ns , const char *hname , size_t n );

πŸŽ€ ARGUMENTS πŸŽ€

  • ns β€” the namespace you start from. It is NOT NULL, like actually not optional.
  • hname β€” the name to do the lookup on. It does not contain a namespace prefix, and it is also NOT NULL. no cap.
  • n β€” the size of hname.
bestie, both ns and hname are NOT NULL β€” this is not a vibe where you pass nothing and hope for the best πŸ’€

πŸ¦‹ RETURN πŸ¦‹

you get a refcounted profile back, or NULL if it's not found. that's the whole return situation, iykyk. 🫢

🌸 SEE ALSO 🌸

the kernel file is literally ./security/apparmor/policy.c, and the whole squad is:

mwah πŸ’‹ β€” source/version ./security/apparmor, date October 2026, and that's the whole page, bestie 🫢✨

πŸ“¦ where this page comes from