aa_alloc_profile(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ aa_alloc_profile(9) β€” Kernel API Manual, bestie edition ✨

okay so we're in the Kernel API Manual and today's main character is aa_alloc_profile(9) πŸ’… this one's short and sweet but like, actually important β€” it literally brings a brand-new profile into existence. no cap.


🌸 NAME 🌸

aa_alloc_profile β€” allocate, initialize and return a new profile πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct aa_profile * aa_alloc_profile (const char *hname , struct
       aa_proxy *proxy , gfp_t gfp );

like yes, that's three args, and yes, you gotta pass them all. 🫢


✨ ARGUMENTS ✨

  • hname β€” the name of the profile. and listen: it is NOT NULL. do not try it. this is not the vibe. 😭
  • proxy β€” the proxy to use OR null if you want a brand new one allocated for you. your call, bestie πŸ’…
  • gfp β€” the allocation type. that's it, that's the whole thing. 🌈

πŸŽ€ RETURN πŸŽ€

returns a refcounted profile πŸ”₯ β€” or NULL on failure, in which case, sad girl hours 😭 but at least you know.


πŸ‘‘ SEE ALSO πŸ‘‘

this is the part where we shout out the whole friend group 🫢 the Kernel file is ./security/apparmor/policy.c, and it wants you to also go look at:

like that's the whole group chat, screenshot it πŸ“Έ


ngl this page is short because the function just does its little job and slays. allocate, initialize, return. iconic behaviour, no notes. ⭐

and that's a wrap, bestie πŸ’– this one came from ./security/apparmor and it's dated October 2026 β€” so yeah, fresh off the press. mwah πŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from