summaryrefslogtreecommitdiffstats
path: root/nixos/modules/profiles
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2019-08-15 18:24:24 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2019-08-15 18:43:32 +0200
commit4b21d1ac8ca5f38a7c05d8f79418858afe628933 (patch)
treec0b9a1aa95b933e3d69cfe7279b99c6d32264725 /nixos/modules/profiles
parent44d541078fdcef668919c2f1c17b0467a8c78b1f (diff)
nixos-hardened: enable page alloc randomization
Diffstat (limited to 'nixos/modules/profiles')
-rw-r--r--nixos/modules/profiles/hardened.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/profiles/hardened.nix b/nixos/modules/profiles/hardened.nix
index 9e9ddd4f3788..139ced1e53be 100644
--- a/nixos/modules/profiles/hardened.nix
+++ b/nixos/modules/profiles/hardened.nix
@@ -44,6 +44,9 @@ with lib;
# Disable legacy virtual syscalls
"vsyscall=none"
+
+ # Enable page allocator randomization
+ "page_alloc.shuffle=1"
];
boot.blacklistedKernelModules = [