aa_change_profile(9)
π« aa_change_profile(9) π«
okay so bestie, welcome to the Kernel API Manual β yes we're in kernel land today, and yes this page is a whole vibe. it's aa_change_profile(9) and it's giving "one-way trip, no refunds" π
π¦ SYNOPSIS
int aa_change_profile (const char *fqname , int flags );
β¨ ARGUMENTS
fqnameβ the name of the profile, and heads up, it may include a namespace. also: it's<italic>NOT NULL</italic>, so likeβ¦ don't even try it πflagsβ the flags that affect how the change behaves π§
π DESCRIPTION
okay so the whole point: this changes you to a new profile name. and here's the tea β unlike with hats, there is no way to change back. one-way transition, periodt. π₯
if the name isn't specified, the current profile name is used. and if onexec then the transition is delayed until the next exec. iykyk β
it returns 0 on success, and an error otherwise. that's it, that's the whole deal π
π SEE ALSO
like, go read the kernel file ./security/apparmor/domain.c and also these iconic little friends:
may_change_ptraced_domain(9)label_compound_match(9)label_components_match(9)label_match(9)change_profile_perms(9)aa_xattrs_match(9)find_attach(9)x_table_lookup(9)x_to_label(9)apparmor_bprm_creds_for_exec(9)aa_change_hat(9)
ngl bestie, remember the no-take-backs energy on this one. there's no "undo" button here π
and that's a wrap! this page lives in ./security/apparmor, dated October 2026 β stay slay, stay secure, mwah π«Άπ¦π
π¦ 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