__list_remove_profile(9)
π __list_remove_profile(9) β Kernel API Manual π
okay bestie, welcome to the Kernel API Manual corner of the group chat. This page is all about __list_remove_profile, and yes, we're keeping every detail. π
πΈ NAME πΈ
__list_remove_profile β remove a profile from the list it is on. periodt. π
β¨ SYNOPSIS β¨
void __list_remove_profile (struct aa_profile *profile );
π¦ ARGUMENTS π¦
profileβ the profile to remove. It is NOT NULL (like, actually not NULL, bestie β do not play with that). π
π DESCRIPTION π
So this one removes a profile from the list it is on. warning though: generally, removal should be done with __replace_profile, because most profile removals are replacements to the unconfined profile. That's the lore. π
Also, it does the put profile list refcount thing. π«Ά
Requires: namespace lock be held, or list not have been live. fr fr, that's the requirement.
π§ SEE ALSO π§
Kernel file: ./security/apparmor/policy.c β and here's the whole friend group, no cap:
aa_pdb_free_kref(9)__add_profile(9)__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)
xoxo, your kernel bestie π source/version: ./security/apparmor Β· date: October 2026 Β· page: __list_remove_profile(9) β¨
π¦ 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