base: mitigate dirtyfrag

This commit is contained in:
Daniel Olsen
2026-05-08 00:55:45 +02:00
parent f2752ee9a6
commit 14994485c5
4 changed files with 38 additions and 16 deletions

17
base/mitigations.nix Normal file
View File

@@ -0,0 +1,17 @@
{ ... }:
{
boot.blacklistedKernelModules = [
"rxrpc" # dirtyfrag
"esp6" # dirtyfrag
"esp4" # dirtyfrag
];
boot.extraModprobeConfig = ''
# dirtyfrag
install esp4 /bin/false
# dirtyfrag
install esp6 /bin/false
# dirtyfrag
install rxrpc /bin/false
'';
}