HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

aa-enforce — Set an AppArmor profile to enforce mode. See also: `aa-complain`, `aa-disable`, `aa-status`. More in

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandapparmorenforceaa-enforcecliprofilesetmode
linux

Problem

How to use the aa-enforce command: Set an AppArmor profile to enforce mode. See also: aa-complain, aa-disable, aa-status. More information: <https://gitlab.com/apparmor/apparmor/-/wikis/manpage_aa-enforce.8>.

Solution

aa-enforce — Set an AppArmor profile to enforce mode. See also: aa-complain, aa-disable, aa-status. More information: <https://gitlab.com/apparmor/apparmor/-/wikis/manpage_aa-enforce.8>.

Enable profile:
sudo aa-enforce {{[-d|--dir]}} {{path/to/profile}}


Enable profiles:
sudo aa-enforce {{path/to/profile1 path/to/profile2 ...}}

Code Snippets

Enable profile

sudo aa-enforce {{[-d|--dir]}} {{path/to/profile}}

Enable profiles

sudo aa-enforce {{path/to/profile1 path/to/profile2 ...}}

Context

tldr-pages: linux/aa-enforce

Revisions (0)

No revisions yet.