aa_label_alloc(9)
π aa_label_alloc(9) β like, the Kernel API Manual page, bestie π
okay so picture this: you're deep in aa_label_alloc, straight out of the Kernel API Manual, and you need a label with a profile vector. let me walk you through it, no cap π¦
β¨ NAME β¨
aa_label_alloc β allocate a label with a profile vector of @size length. that's the whole vibe. that's her job. π
πΈ SYNOPSIS πΈ
struct aa_label * aa_label_alloc (int size , struct aa_proxy *proxy ,
gfp_t gfp );
look at that signature. iconic. it returns a struct aa_label * and it takes three things. slay π
π¦ ARGUMENTS π¦
sizeβ the size of the profile vector in the label. like, how big the vector is gonna be, fr fr πproxyβ the proxy to use ORnullif you want it to allocate a new one. your call, bestie π«Άgfpβ the memory allocation type. this is the flavouring of the allocation, iykyk β¨
π RETURN π
you get a new label back π ... or NULL if it failed π that's it, that's the deal.
no cap, NULL means it did not work out. don't be out here dereferencing that, bestie. π«Ά
π SEE ALSO π
okay this list is long, like genuinely a whole group chat of related functions. all of them, in the order they showed up in the Kernel file ./security/apparmor/label.c, okay? ns_cmp(9), profile_cmp(9), vec_cmp(9), aa_vec_unique(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), aa_labelset_destroy(9), __label_update(9), __labelset_update(9), __aa_labelset_update_subtree(9).
go read them. or at least the ones you need. we love a well-documented neighbourhood π
that's the whole page, bestie π β it lives in ./security/apparmor, the source line dates it to October 2026, and the footer literally just says the same name again in the manual-page-girlie way: aa_label_alloc(9). byeee, stan AppArmor πΈπ
β¨
π¦ 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