aa_change_profile(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« 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:


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