__label_remove(9)
π¦ __label_remove(9) β Kernel API Manual bestie π¦
okay so this is __label_remove(9) from the Kernel API Manual, and it's giving βtiny but locked-downβ energy π
. It removes a label from the label set, and there is a very real lock requirement you cannot ghost. π«Ά
β¨ NAME β¨
__label_remove β remove @label from the label set. Iconic, direct, no filler π.
πΈ SYNOPSIS πΈ
bool __label_remove (struct aa_label *label , struct aa_label *new );
π ARGUMENTS π
labelβ label to remove. This is the one getting removed from the label set, periodt.newβ label to redirect to. The redirect target, iykyk π«.
π₯ DESCRIPTION π₯
Requires: labels_set(label)->lock write_lock.
β οΈ bestie, this is the lock requirement β like, do not skip it. It's not a vibe, it's a requirement π.
π RETURN π
Returns true if the label was in the tree and removed. That's the exact return condition, no extra lore β¨.
π SEE ALSO π
Kernel file ./security/apparmor/label.c, plus the whole function friend group:
ns_cmp(9)profile_cmp(9)vec_cmp(9)aa_vec_unique(9)aa_label_alloc(9)label_cmp(9)__aa_label_next_not_in_set(9)aa_label_is_subset(9)aa_label_is_unconfined_subset(9)__label_replace(9)__label_insert(9)__vec_find(9)__label_find(9)aa_label_remove(9)aa_label_replace(9)vec_find(9)aa_label_insert(9)aa_label_next_in_merge(9)label_merge_cmp(9)label_merge_insert(9)labelset_of_merge(9)__label_find_merge(9)aa_label_find_merge(9)aa_label_merge(9)label_compound_match(9)label_components_match(9)aa_label_match(9)aa_update_label_name(9)aa_profile_snxprint(9)aa_label_snxprint(9)aa_label_asxprint(9)aa_label_acntsxprint(9)aa_label_strn_parse(9)aa_labelset_destroy(9)__label_update(9)__labelset_update(9)__aa_labelset_update_subtree(9)
xoxo, your kernel bestie π β source/version: ./security/apparmor; date: October 2026; page: __label_remove(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