aa_policy_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… aa_policy_destroy(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes, the actual kernel, we're literally in the kernel rn, no cap ✨ this one's short and sweet and it's giving "cleanup era" πŸŽ€


🌸 NAME 🌸

aa_policy_destroy β€” frees up all the elements that @policy is pointing at 🫢 like, it's the designated hitter for cleanup duty, and honestly? iconic.


✨ SYNOPSIS ✨

void aa_policy_destroy (struct aa_policy *policy );

that's it. that's the whole vibe check. one function, one job, she ate πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • policy β€” the policy whose elements are getting freed. and listen, this one comes with a (NOT NULL) stamp on it 😭 so do not roll up with a NULL and expect a cute little no-op, because that is not the move, periodt. hand her a real, valid policy or don't come at all πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

ngl the whole fam is in here, from the kernel file ./security/apparmor/lib.c on through the squad β€” go say hi:

(and yeah, aa_policy_init(9) is right there too β€” she makes 'em, this one cleans 'em up, it's giving balanced ecosystem πŸŒˆπŸ’–)


ngl this page is lowkey tiny but highkey important β€” free your elements bestie, that's self care πŸ§šβ€β™€οΈπŸŒΈ

okurrr that's the page!! came to you straight from ./security/apparmor, dated October 2026, and no I will not be normal about a kernel doc that's this clean πŸ’œβœ¨ bye bestie, go destroy some policy elements responsibly πŸŽ€

πŸ“¦ where this page comes from