mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
Merge pull request #223548 from enc0urage/fix-graphene-hardened
nixos/malloc: set vm.max_map_count when using graphene-hardened
This commit is contained in:
commit
9a6aabc474
|
@ -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 a new issue