AA-ENFORCE(8)
β¨ NAME β¨
okay so bestie, let me put you on π
β aa-enforce is the AppArmor girlie whose whole job is flipping a security profile into enforce mode, pulling it out of disabled-or-complain limbo. That's it. That's the gig. π
πΈ SYNOPSIS πΈ
aa-enforce <executable> [<executable> ...] [-d /path/to/profiles]
[--no-reload] [--force]
π OPTIONS π
-d,--dirpath/to/profilesβ tells AppArmor where to go looking for the security profile set, aka the lil neighborhood where all your profiles live. It defaults to/etc/apparmor.dif you don't say anything. π--no-reloadβ do not reload the profile after modifying it. it's giving "I changed it but I'm not refreshing the page," iykyk. π--forceβ grabs the profile and slams it into enforce mode even when it's currently sitting in unconfined mode. no cap, it does not ask permission first. π₯
π¦ DESCRIPTION π¦
So aa-enforce sets one or more profiles to enforce mode β that's the main character moment. β¨
But here's the lore: this command only really means anything when it's hanging out next to its two besties:
- the
aa-complainutility, which flips a profile into complain mode, and - the
aa-disableutility, which unloads a profile and disables it entirely.
And listen β the default mode for a security policy is already enforce. So if you want literally anything else, you have to go run the aa-complain utility to switch that behavior up. The system ships enforcing, periodt. π
π BUGS π
Found a bug? Not the vibe. π Please report it at <https://gitlab.com/apparmor/apparmor/-/issues> so the maintainers can deal with it.
π SEE ALSO π
apparmor(7)apparmor.d(5)aa-complain(1)aa-disable(1)aa_change_hat(2)- and <https://wiki.apparmor.net>
okay that's the whole page bestie, you're soooo welcome π«Ά this was the AppArmor manual, section 8, written by the AppArmor girlies β AppArmor 6.0.0~alpha1, dated 2026-10-05. mwah ππ
π¦ where this page comes from
- ubuntu stonking: apparmor-utils 6.0.0~alpha1-0ubuntu4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms