aa_label_strn_parse(9)
β¨ aa_label_strn_parse(9) β Kernel API Manual β¨
Okay so bestie, you're looking at the manual page for aa_label_strn_parse(9) from the Kernel API Manual. This is the function that literally parses, validates, and converts a text string into a label. Like, glow-up from string to label, no cap. Let's get into it. π
πΈ NAME πΈ
aa_label_strn_parse β parse, validate, and convert a text string into a label. It's giving "string to label" realness. π¦
π¦ SYNOPSIS π¦
struct aa_label * aa_label_strn_parse (struct aa_label *base , const
char *str , size_t n , gfp_t gfp , bool create , bool force_stack );
π ARGUMENTS π
baseβ the base label you're using for lookups. It's NOT NULL, so don't even think about passing NULL, bestie. πstrβ a null-terminated text string. Also NOT NULL. Like, literally must be a valid string. πnβ the length ofstrto parse. It'll stop at if it encounters that beforen. (Yes, there's a blank space there in the original, so respect the gap. π)gfpβ the allocation type. Standard kernel allocation vibes. π§createβ set totrueif it should create compound labels when they don't exist. Like, make it happen. β¨force_stackβ set totrueif it should stack even if there's no leading&. It's giving "forceful" energy. π₯
π RETURN π
Returns the matching refcounted label if it's present. If not? You get an ERRPTR. So check for errors, okay? Don't just assume it worked and move on. π€
π SEE ALSO π
Kernel file ./security/apparmor/label.c: 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_labelset_destroy(9), __label_update(9), __labelset_update(9), __aa_labelset_update_subtree(9).
Catch you in the kernel, bestie! This page is from the ./security/apparmor source, version October 2026, and it's all about aa_label_strn_parse(9). Mwah! π
π¦ 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