__list_remove_profile(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ __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:


xoxo, your kernel bestie πŸ’– source/version: ./security/apparmor Β· date: October 2026 Β· page: __list_remove_profile(9) ✨

πŸ“¦ where this page comes from