this post was submitted on 03 Apr 2024
134 points (95.9% liked)

Linux

48153 readers
791 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
134
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
 

Linux Firmware Update Utility Fwupd Will Use Zstd Compression for Future Releases

The devs are also considering enforcing signed commits in an attempt to prevent supply chain issues like the XZ backdoor.

Edit: note for downvotes: I understand some of you disagree with the need for a switch. However, are you downvoting the news itself (i.e. shooting the messenger?)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 7 months ago (2 children)

Look at what libs zstd is linked to. You'll be surprised.

[–] [email protected] 19 points 7 months ago (1 children)

ldd $(which zstd)

liblzma.so.5

... wow

[–] [email protected] 11 points 7 months ago (2 children)

Here, it's libzstd.so, libc and glibc, and libzstd only libc and glibc. What do you mean? At first I thought you were implying an liblzma dependency, but there's no such thing, at least can't see it.

[–] [email protected] 7 points 7 months ago (2 children)
% libtree /usr/bin/zstd
/usr/bin/zstd 
├── libz.so.1 [ld.so.conf]
├── liblz4.so.1 [ld.so.conf]
└── liblzma.so.5 [ld.so.conf]
% lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm
%
[–] [email protected] 11 points 7 months ago (1 children)

Maybe Debian's goal is to make liblzma a dependency of everything possible? It wasn't a standard dependency of OpenSSH either, but rather something they patched in. ;)

[–] [email protected] 1 points 7 months ago (1 children)

What's your distro and how did you check needed libraries? I guess that liblzma.so can be needed by libzstd.so in your system.

[–] [email protected] 5 points 7 months ago* (last edited 7 months ago)

NixOS, did a ldd (which zstd) and then ldd on the reported libzstd file.

Not using a POSIX shell before people complain about syntax

Edit: if you look at https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/tools/compression/zstd/default.nix, you'll see that buildInputs is not being set, which means it can't link to anything except the standard libraries.

[–] [email protected] 2 points 7 months ago (2 children)

Bookworm was unaffected by this though, right?

[–] [email protected] 3 points 7 months ago

Canonical is delaying Noble by more than a week so they can rebuild every binary in a clean environment, just in case the build process itself was affected.

[–] [email protected] 2 points 7 months ago
% xz --version 
xz (XZ Utils) 5.4.1
liblzma 5.4.1
%

I hope so.

[–] [email protected] 3 points 7 months ago

Apparently it differs between distributions