News for hackers. Stuff that matters.
Re:Arch Linux and Valve Collaboration by tetris11 on Saturday September 28, 2024 @05:49AM (#41679162)
If builds are reproducible, what's the issue?
Re:Arch Linux and Valve Collaboration by cyanmagenta on Saturday September 28, 2024 @08:00AM (#41679689)
> If the builds are reproducible, what’s the issue?

Because they’re not! Many packages (including the kernel itself, python, gcc, et al.), are not reproducible. See https://reproducible.archlinux.org/

Re:Arch Linux and Valve Collaboration by NekkoDroid on Saturday September 28, 2024 @10:01AM (#41680270)
The Kernel isn't reproducible due to modules being signed with a temporary key that gets created and discarded during build. This is to allow loading those modules when secure boot is enabled, without the user needing to sign each and everyone themselves
Re:Arch Linux and Valve Collaboration by hedora on Saturday September 28, 2024 @10:50AM (#41680584)
That sounds like a design gone horribly wrong.

Why not have the package maintainer build once (with all the modules that arch distributes), sign the output with temporary keys, and then add the signatures to the package source?

If the build is reproducible, the signatures will match the output of future builds.

If the user wants to use a custom kernel module, they’ll need to either rebuild with a new key, or turn off safe boot.

That’s vastly preferable than opening the entire kernel to build infrastructure attacks!

Re:Arch Linux and Valve Collaboration by NekkoDroid on Saturday September 28, 2024 @11:23AM (#41680826)
> If the build is reproducible, the signatures will match the output of future builds.

Anything that contains traces of a private key is not reproducible. The public key needs to be embedded in the kernel to be able to load the signed modules. If you distribute them without signature you can't load them due to the kernel not trusting them, if you sign them in any way with a private key they aren't reproducable since you don't want to hand out the private key. And to prevent additional random stuff being signed with the private key it gets discarded.

> If the user wants to use a custom kernel module, they’ll need to either rebuild with a new key, or turn off safe boot.

Or you can just sign the additional modules (e.g. DKMS) with the same key you sign the kernel & bootloader that you need to enroll into the UEFI anyway. It is less work on the users end and if the distro themselves wanna enable secure boot without user intervention via shim they need to do the signing stuff anyway.