aa_free_profile(9)
π aa_free_profile(9) π
okay so this page is from the Kernel API Manual, and it's giving "cleanup era" energy fr fr. No cap, it's about freeing a profile and all its little besties.
β¨ NAME β¨
aa_free_profile β free a profile π«Ά
π«Ά SYNOPSIS π«Ά
void aa_free_profile (struct aa_profile *profile );
π ARGUMENTS π
profileβ the profile to free (MAYBE NULL) π
π DESCRIPTION π
It frees a profile, its hats and null_profile. Like, all of them. The whole little squad. π
All references to the profile, its hats and null_profile must have been put before this runs β every single reference, no leftovers, periodt. β¨
β οΈ If the profile was referenced from a task context,free_profilewill be called from anrcucallback routine, so we must not sleep here. That's the vibe check you literally cannot fail. π
π SEE ALSO π
Kernel file ./security/apparmor/policy.c is the home base, and these are the linked besties:
aa_pdb_free_kref(9)__add_profile(9)__list_remove_profile(9)__remove_profile(9)__aa_profile_list_release(9)aa_free_data(9)aa_alloc_profile(9)__strn_find_child(9)__find_child(9)aa_find_child(9)__lookup_parent(9)__create_missing_ancestors(9)__lookupn_profile(9)aa_lookupn_profile(9)__aa_new_learning_profile(9)replacement_allowed(9)audit_policy(9)aa_policy_view_capable(9)aa_may_manage_policy(9)__replace_profile(9)__lookup_replace(9)aa_replace_profiles(9)aa_remove_profiles(9)
mwah π β source/version: ./security/apparmor, dated October 2026 β¨
π¦ 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