aa_label_strn_parse(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 of str to parse. It'll stop at if it encounters that before n. (Yes, there's a blank space there in the original, so respect the gap. 😭)
  • gfp β€” the allocation type. Standard kernel allocation vibes. 🧚
  • create β€” set to true if it should create compound labels when they don't exist. Like, make it happen. ✨
  • force_stack β€” set to true if 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