mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-18 21:57:21 +02:00
fix: mitigate Dirty Frag LPE vulnerabilities
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
# Kernel module blacklisting to mitigate Dirty Frag LPE (Local Privilege Escalation) vulnerabilities.
|
||||||
|
boot.blacklistedKernelModules = [
|
||||||
|
"esp4"
|
||||||
|
"esp6"
|
||||||
|
"rxrpc"
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.extraModprobeConfig = ''
|
||||||
|
install esp4 ${pkgs.coreutils}/bin/false
|
||||||
|
install esp6 ${pkgs.coreutils}/bin/false
|
||||||
|
install rxrpc ${pkgs.coreutils}/bin/false
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user