label_merge_insert(9)
π label_merge_insert(9) β a Kernel API Manual moment π
okay so bestie, we're in label_merge_insert(9) territory β that's the Kernel API Manual page, and yes it's exactly as niche and exactly as iconic as it sounds β¨
π¦ NAME π¦
label_merge_insert β create a new label by merging @a and @b π
πΈ SYNOPSIS πΈ
struct aa_label * label_merge_insert (struct aa_label *new , struct aa_label *a , struct aa_label *b );
β¨ ARGUMENTS β¨
newβ a preallocated label that we merge into β and no, it is NOT NULL, do not come for me πaβ the label that gets merged withb(also NOT NULL, we stay strict π )bβ the label that gets merged witha(NOT NULL, obviously, consistency is key π)
π DESCRIPTION π
Requires: preallocated proxy. that's it, that's the whole vibe check π«Ά
π₯ RETURN π₯
it hands you back a ref counted label, and which one you get is giving choose-your-own-adventure:
newβ if the merge is unique, slay, brand new label for you πaβ ifbis a subset ofa, then congrats,awas the moment all alongbβ ifais a subset ofb, thenbate and left no crumbs β
π NOTE π
lowkey important: it will not usenewif the merge results innew == aorbπ«
and fr fr, this must be used within the labelset write lock β otherwise you're racing with setting labels stale, and that's not the main character energy we're going for π
π SEE ALSO π
the kernel file this lives in is ./security/apparmor/label.c β here's your whole reading list bestie, iykyk π
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_remove(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)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)
and that's the whole page, bestie π§ source: ./security/apparmor, dated October 2026 β periodt, go merge some labels π
π
π¦ 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