Merge pull request #62238 from delroth/hardened-alloc-systemwide
nixos/malloc: apply allocator settings to systemd units
commitb0500aafd5570ae55fb1ec698f58ef7292ee0a44
authorJoachim F <joachifm@users.noreply.github.com>
dateThu 30 May 2019, 08:59 (7 years ago)
parent479d1619e60eab
nixos/modules/config/malloc.nix+2
@@ -91,5 +91,7 @@ in
9191
9292 config = mkIf (cfg.provider != "libc") {
9393 environment.variables.LD_PRELOAD = providerLibPath;
94+ systemd.extraConfig = "DefaultEnvironment=\"LD_PRELOAD=${providerLibPath}\"";
95+ systemd.user.extraConfig = "DefaultEnvironment=\"LD_PRELOAD=${providerLibPath}\"";
9496 };
9597}