aa_policy_destroy(9)
π 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 aNULLand 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:
val_mask_to_str(9)aa_destroy_str_table(9)skipn_spaces(9)aa_info_message(9)aa_perm_mask_to_str(9)aa_apply_modes_to_perms(9)aa_check_perms(9)aa_policy_init(9)
(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
- 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