Merge pull request #62238 from delroth/hardened-alloc-systemwide
nixos/malloc: apply allocator settings to systemd units
This commit is contained in:
commit
b0500aafd5
|
@ -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}\"";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue