__create_missing_ancestors(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __create_missing_ancestors(9) πŸ’–

okay bestie, this page is coming at you from the Kernel API Manual, and it's all about one very specific little function. no cap, let's get into it.

πŸ¦‹ NAME πŸ¦‹

__create_missing_ancestors β€” create place holders for missing ancestors. that's the whole vibe of the name, and she's literally doing what it says.

✨ SYNOPSIS ✨

struct aa_policy * __create_missing_ancestors (struct aa_ns *ns , const char *hname , gfp_t gfp );

πŸŽ€ ARGUMENTS πŸŽ€

  • ns β€” namespace to lookup profile in. it is NOT NULL, bestie, so don't even try it.
  • hname β€” hierarchical profile name to find parent of. also NOT NULL. the constraints are constraining.
  • gfp β€” type of allocation.

πŸ’… DESCRIPTION πŸ’…

Requires: ns mutex lock held. not optional, not "i'll do it later," not a vibe check you can skip. hold the ns mutex lock before you call this, periodt.

πŸ’– RETURN πŸ’–

on success, you get an unrefcounted parent policy. if there's an error creating place holder profiles, you get NULL. that's the return tea, no extra garnish.

🌈 SEE ALSO 🌈

the kernel file is ./security/apparmor/policy.c, and these are all the related manual pages in the group chat:


xoxo, your Unix bestie πŸ’‹ β€” source: ./security/apparmor, manual/version: Kernel API Manual, date: October 2026. mwah 🫢

πŸ“¦ where this page comes from