aa_get_pdb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

hey bestie, welcome to aa_get_pdb(9) from the Kernel API Manual πŸ’… this function is literally here to increment refcount on @pdb β€” that's the whole vibe, and yes, it's giving β€œtiny refcount helper with main character energy” ✨

πŸŽ€ SYNOPSIS πŸŽ€

struct aa_policydb * aa_get_pdb (struct aa_policydb *pdb );

πŸ’– ARGUMENTS πŸ’–

  • pdb β€” this is the policydb (MAYBE NULL) 🫢 so yes, it can be NULL; the manual literally says MAYBE NULL, no cap.

πŸ¦‹ RETURN πŸ¦‹

  • returns a pointer to pdb 🌱
  • if pdb is NULL, it will return NULL 😭 so null in, null out, iconic honestly
  • Requires: pdb must be held with a valid refcount when called πŸ‘‘
⚠️ okay bestie, this is the important caveat: pdb must be held with a valid refcount when called. That's a requirement, not a suggestion, fr fr πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./security/apparmor/include/policy.h


okay bye bestie 🫢 this page comes from ./security/apparmor/include, dated October 2026, and it's aa_get_pdb(9) β€” slay, you're all caught up πŸ’–βœ¨

πŸ“¦ where this page comes from