Merge pull request #62238 from delroth/hardened-alloc-systemwide

nixos/malloc: apply allocator settings to systemd units
This commit is contained in:
Joachim F 2019-05-30 08:59:54 +00:00 committed by GitHub
commit b0500aafd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,5 +91,7 @@ in
config = mkIf (cfg.provider != "libc") {
environment.variables.LD_PRELOAD = providerLibPath;
systemd.extraConfig = "DefaultEnvironment=\"LD_PRELOAD=${providerLibPath}\"";
systemd.user.extraConfig = "DefaultEnvironment=\"LD_PRELOAD=${providerLibPath}\"";
};
}