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, --dir path/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.d if 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-complain utility, which flips a profile into complain mode, and
  • the aa-disable utility, 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 🌈


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