nixos/malloc: set vm.max_map_count when using graphene-hardened
This commit is contained in:
parent
4361baa782
commit
a76bd96e4b
1 changed files with 1 additions and 0 deletions
|
@ -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