replacement_allowed(9)
replacement_allowed(9) π β¨
okay so bestie, welcome to the Kernel API Manual side of town π«Ά this page is replacement_allowed, aka the little test that checks if replacement is allowed. That's it. That's the assignment. Let's get into it π
NAME π
replacement_allowed β test to see if replacement is allowed π
SYNOPSIS π
int replacement_allowed (struct aa_profile *profile , int noreplace ,
const char **info );
ARGUMENTS π¬
profileβ profile to test if it can be replaced (MAYBE NULL) πnoreplaceβtrueif replacement shouldn't be allowed but addition is okay π«infoβ Returns - info about why replacement failed (NOT NULL) π«Ά
RETURN π
0 if replacement allowed, else error code. no cap, that's the whole return vibe β¨
SEE ALSO π
Kernel file ./security/apparmor/policy.c β plus the whole linked-up friend group, all here, all accounted for:
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_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)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 π signed off from ./security/apparmor, dated October 2026 β and yes, it's still replacement_allowed(9) energy. periodt. π
π¦ 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