aa_setprocattr_changehat(9)
π
aa_setprocattr_changehat(9) β Kernel API Manual π
okay so bestie, this is the Kernel API Manual page for aa_setprocattr_changehat β the one that handles the procattr interface to change_hat. iconic little kernel moment, honestly π
β¨ NAME β¨
aa_setprocattr_changehat β handle procattr interface to change_hat π¦
πΈ SYNOPSIS πΈ
int aa_setprocattr_changehat (char *args , size_t size , int flags );
π ARGUMENTS π
argsβ the args received from writing to/proc/<pid>/attr/current. and listen: this one is NOT NULL, okay? no cap πsizeβ the size of the args.flagsβ the set of flags governing behavior. yes maβam, behavior gets governed π
β RETURN β
Returns 0 or an error code if change_hat fails.
so yeah: success gives you 0, and if change_hat fails you get an error code. thatβs the whole vibe check πβ¨
π₯ SEE ALSO π₯
Kernel file ./security/apparmor/procattr.c β plus aa_getprocattr(9) and split_token_from_name(9). go peep those, iykyk π
made with π from ./security/apparmor, dated October 2026. periodt π«Άπ
π¦ 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