nixos/security/misc: expose l1tf mitigation option

For the hardened profile enable flushing whenever the hypervisor enters the
guest, but otherwise leave at kernel default (conditional flushing as of
writing).
This commit is contained in:
Joachim Fasting
2018-12-27 15:00:48 +01:00
parent 84fb8820db
commit e9761fa327
2 changed files with 41 additions and 0 deletions
+2
View File
@@ -22,6 +22,8 @@ with lib;
security.protectKernelImage = mkDefault true;
security.virtualization.flushL1DataCache = mkDefault "always";
security.apparmor.enable = mkDefault true;
boot.kernelParams = [