git.iko.soy/typeable/nixpkgs
on master help sign in
nixos-hardened: disable unprivileged userfaultfd syscalls

New in 5.2 [1] [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cefdca0a86be517bc390fc4541e3674b8e7803b0

commitda0b67c94650b4fc934316f958ddcc4e95d774bd authorJoachim Fasting <joachifm@fastmail.fm> dateThu 18 Jul 2019, 14:00 (7 years ago) parent4b21d1a
1 file changed+3
nixos/modules/profiles/hardened.nix+3
nixos/modules/profiles/hardened.nix+3
@@ -124,4 +124,7 @@ with lib;
124124 # Ignore outgoing ICMP redirects (this is ipv4 only)
125125 boot.kernel.sysctl."net.ipv4.conf.all.send_redirects" = mkDefault false;
126126 boot.kernel.sysctl."net.ipv4.conf.default.send_redirects" = mkDefault false;
127+
128+ # Restrict userfaultfd syscalls to processes with the SYS_PTRACE capability
129+ boot.kernel.sysctl."vm.unprivileged_userfaultfd" = mkDefault false;
127130}