diff --git a/src/config/security/apparmor.md b/src/config/security/apparmor.md index 884b4509..75792fa6 100644 --- a/src/config/security/apparmor.md +++ b/src/config/security/apparmor.md @@ -1,19 +1,24 @@ # AppArmor -AppArmor is a mandatory access control mechanism (like SELinux). It can -constrain programs based on pre-defined or generated policy definitions. +[AppArmor](https://apparmor.net/) is a mandatory access control mechanism (like +SELinux). It can constrain programs based on pre-defined or generated policy +definitions. Void ships with some default profiles for several services, such as `dhcpcd` and `wpa_supplicant`. Container runtimes such as LXC and podman integrate with AppArmor for better security for container payloads. -To use AppArmor install the `apparmor` package and add `apparmor=1 -security=apparmor` to the [kernel cmdline](./../kernel.md#cmdline). +To use AppArmor install the `apparmor` package and add `apparmor=1 lsm=apparmor` +to the [kernel cmdline](./../kernel.md#cmdline). By default AppArmor will boot in `enforce` mode and disallow all policy violations. To boot in `complain` mode, add `apparmor.mode=complain` to the kernel cmdline. +Some extra profiles, which are not enabled by default, are shipped in +`/usr/share/apparmor/extra-profiles`. For how to enable them, look at the +`README` in that directory. + AppArmor tools [aa-genprof(8)](https://man.voidlinux.org/aa-genprof.8) and [aa-logprof(8)](https://man.voidlinux.org/aa-logprof.8) require either configured [syslog](../services/logging.md) or a running