aa_labelset_destroy(9)
π aa_labelset_destroy(9) π
okay bestie, welcome to the Kernel API Manual page for aa_labelset_destroy(9) β she's the cleanup queen who removes all labels from the label set, and she's genuinely iconic for it β¨
πΈ NAME πΈ
aa_labelset_destroy β remove all labels from the label set. that's it, that's the vibe, and she ate π
β¨ SYNOPSIS β¨
void aa_labelset_destroy (struct aa_labelset *ls );
π ARGUMENTS π
lsβ label set to cleanup (NOT NULL). bestie, do not pass a null pointer here, fr fr π
π DESCRIPTION π
okay so plot twist, bestie: labels that are removed from the set may still exist beyond the set being destroyed depending on their reference counting. so destroying the set lowkey does not automatically mean every removed label is gone-gone β reference counting is the main character here π
π¦ SEE ALSO π¦
Kernel file ./security/apparmor/label.c is home base for this whole friend group, and the squad is:
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)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)__label_update(9)__labelset_update(9)__aa_labelset_update_subtree(9)
mwah π β source/version: ./security/apparmor; date: October 2026; page: aa_labelset_destroy(9). 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