__remove_profile(9)
π __remove_profile(9) π
okay so bestie, welcome to the Kernel API Manual β this is a (9) page, which means it's kernel-internals territory, and the function we're stanning today is __remove_profile. She removes profiles. And their children. Iconic, lowkey brutal, but necessary. π
β¨ NAME β¨
__remove_profile β remove profile, and children π«Ά
Like, yes, the whole little family tree. No profile left behind. Periodt.
πΈ SYNOPSIS πΈ
void __remove_profile (struct aa_profile *profile );
Copy it exactly, bestie, spaces and all β do NOT go "fixing" the formatting, I'm begging π
π¦ ARGUMENTS π¦
profileβ the profile to be removed. NOT NULL, fr fr. Do not hand this function a NULL, that's not the vibe, that's a crash waiting to happen π
π DESCRIPTION π
Okay so here's the thing that matters, and I need you to actually read this part instead of skimming like it's a group chat you're 200 messages behind on π
Requires: the namespace list lock be held, or the list not be shared. π¨
That's the whole vibe check of this page. Either you're holding that lock, or the list isn't shared β pick one, no cap. Showing up without either is giving "main character energy" in the worst possible way. π
π SEE ALSO π
Everything in the ./security/apparmor/policy.c family β Kernel file ./security/apparmor/policy.c, and also these icons, all of them, in this exact order, do not @ me:
aa_pdb_free_kref(9)__add_profile(9)__list_remove_profile(9)__aa_profile_list_release(9)aa_free_data(9)aa_free_profile(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)
That's the whole friend group, go say hi to all of them π§π
k that's the page!! mwah π this one came from the ./security/apparmor source, dated October 2026 β literally from the future, slay βππ
π¦ 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