Skip to content

Commit e09e252

Browse files
committed
config/security/apparmor: remove /etc/default/apparmor
1 parent 72daf2a commit e09e252

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

src/config/security/apparmor.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,12 @@ Void ships with some default profiles for several services, such as `dhcpcd` and
77
`wpa_supplicant`. Container runtimes such as LXC and podman integrate with
88
AppArmor for better security for container payloads.
99

10-
To use AppArmor on a system, one must:
10+
To use AppArmor install the `apparmor` package and add `apparmor=1
11+
security=apparmor` to the [kernel cmdline](./../kernel.md#cmdline).
1112

12-
1. Install the `apparmor` package.
13-
2. Set `apparmor=1 security=apparmor` on the kernel commandline.
14-
15-
To accomplish the second step, consult [the documentation on how to modify the
16-
kernel cmdline](./../kernel.md#cmdline).
17-
18-
The `APPARMOR` variable in `/etc/default/apparmor` controls how profiles will be
19-
loaded at boot, the value is set to `complain` by default and corresponds to
20-
AppArmor modes (`disable`, `complain`, `enforce`).
13+
By default AppArmor will boot in `enforce` mode and disallow all policy
14+
violations. To boot in `complain` mode, add `apparmor.mode=complain` to the
15+
kernel cmdline.
2116

2217
AppArmor tools [aa-genprof(8)](https://man.voidlinux.org/aa-genprof.8) and
2318
[aa-logprof(8)](https://man.voidlinux.org/aa-logprof.8) require either

0 commit comments

Comments
 (0)