aa_lookupn_profile(9)
π NAME π
okay bestie, welcome to aa_lookupn_profile(9) from the Kernel API Manual β this icon is literally here to find a profile by its full or partial name. periodt. β¨
β¨ SYNOPSIS β¨
struct aa_profile * aa_lookupn_profile (struct aa_ns *ns , const char *hname , size_t n );
π ARGUMENTS π
nsβ the namespace you start from. It isNOT NULL, like actually not optional.hnameβ the name to do the lookup on. It does not contain a namespace prefix, and it is alsoNOT NULL. no cap.nβ the size ofhname.
bestie, bothnsandhnameareNOT NULLβ this is not a vibe where you pass nothing and hope for the best π
π¦ RETURN π¦
you get a refcounted profile back, or NULL if it's not found. that's the whole return situation, iykyk. π«Ά
πΈ SEE ALSO πΈ
the kernel file is literally ./security/apparmor/policy.c, and the whole squad is:
aa_pdb_free_kref(9)__add_profile(9)__list_remove_profile(9)__remove_profile(9)__aa_profile_list_release(9)aa_free_data(9)aa_free_profile(9)aa_alloc_profile(9)__strn_find_child(9)__find_child(9)aa_find_child(9)__lookup_parent(9)__create_missing_ancestors(9)__lookupn_profile(9)__aa_new_learning_profile(9)replacement_allowed(9)audit_policy(9)aa_policy_view_capable(9)aa_may_manage_policy(9)__replace_profile(9)__lookup_replace(9)aa_replace_profiles(9)aa_remove_profiles(9)
mwah π β source/version ./security/apparmor, date October 2026, and that's the whole page, bestie π«Άβ¨
π¦ 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