nixos/hardened: blacklist a few obscure net protocols
This commit is contained in:
parent
2bce0b13e7
commit
8aa0618cf0
@ -25,6 +25,13 @@ with lib;
|
||||
"nohibernate"
|
||||
];
|
||||
|
||||
boot.blacklistedKernelModules = [
|
||||
# Obscure network protocols
|
||||
"ax25"
|
||||
"netrom"
|
||||
"rose"
|
||||
];
|
||||
|
||||
# Restrict ptrace() usage to processes with a pre-defined relationship
|
||||
# (e.g., parent/child)
|
||||
boot.kernel.sysctl."kernel.yama.ptrace_scope" = mkOverride 500 1;
|
||||
|
Loading…
Reference in New Issue
Block a user