this post was submitted on 03 Apr 2024
35 points (88.9% liked)

Nix / NixOS

1768 readers
1 users here now

Main links

Videos

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] GarlicToast@programming.dev 6 points 7 months ago (10 children)

Nix lets you go back, and you and even mix channels. Pulling one package from a different version.

[–] Atemu@lemmy.ml 1 points 7 months ago (1 children)

That works for leaf packages but not for core node packages. Every package depends on xz in some way; it's in the stdenv aswell as bootstrap.

[–] GarlicToast@programming.dev 1 points 7 months ago (1 children)

You are right, it will be a mess to pull xz from a different hash. This is why you go back to an older build, and keep only packages you need on the newer version.

[–] Atemu@lemmy.ml 1 points 7 months ago

Those packages themselves depend on xz. Pretty much all of them.

What you're suggesting would only make the xz executable not be backdoored anymore but any other application using liblzma would still be as vulnerable as before. That's actually the only currently known attack vector; inject malicious code into SSHD via liblzma.

load more comments (8 replies)