mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
nixos/malloc: set vm.max_map_count when using graphene-hardened
This commit is contained in:
parent
4361baa782
commit
a76bd96e4b
@ -97,6 +97,7 @@ in
|
||||
};
|
||||
|
||||
config = mkIf (cfg.provider != "libc") {
|
||||
boot.kernel.sysctl."vm.max_map_count" = mkIf (cfg.provider == "graphene-hardened") (mkDefault 1048576);
|
||||
environment.etc."ld-nix.so.preload".text = ''
|
||||
${providerLibPath}
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user