aa_get_pdb(9)
β¨ 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 thepolicydb(MAYBE NULL) π«Ά so yes, it can beNULL; the manual literally saysMAYBE NULL, no cap.
π¦ RETURN π¦
- returns a pointer to
pdbπ± - if
pdbisNULL, it will returnNULLπ so null in, null out, iconic honestly - Requires:
pdbmust 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
aa_put_pdb(9)aa_get_newest_profile(9)aa_get_profile(9)aa_get_profile_not0(9)aa_get_profile_rcu(9)aa_put_profile(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms