aa_getprocattr(9)
π aa_getprocattr (9) β Kernel API Manual, bestie edition π
okay so like, welcome to aa_getprocattr from the Kernel API Manual β¨ this one's a lil AppArmor helper and honestly? she's giving "small function, big main character energy" π¦
β¨ NAME β¨
aa_getprocattr β returns the label info for @label π (yes that's literally the whole job, and she does it slayfully)
πΈ SYNOPSIS πΈ
int aa_getprocattr (struct aa_label *label , char **string , bool
newline );
π ARGUMENTS π
labelβ the label you wanna print label info about π (NOT NULL) β like, do not pass null, she will not cope πstringβ this one returns stuff bestie: a string containing the label info π«Ά (NOT NULL)newlineβ aboolthat says whether a newline should be added β (slap a\non it or don't, your call)
π¦ DESCRIPTION π¦
Requires: label != NULL && string != NULL β no cap, both of these need to be real or we're not doing this π
Creates a string containing the label information for label. That's it, that's the vibe β¨ she builds the string, she hands it over, iconic behaviour π
π RETURN π
the size of the string placed in string π β otherwise an error code on failure π (so like, check it, bestie)
π₯ SEE ALSO π₯
- Kernel file
./security/apparmor/procattr.c split_token_from_name(9)aa_setprocattr_changehat(9)
mwah π this page came to you from ./security/apparmor, dated October 2026, and it's aa_getprocattr(9) forever and always πβ¨ go forth and read those labels, queen π
π¦ 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