r/archlinux • • 4d ago

QUESTION Has the build server problem been fixed?

Few years ago i found out that package maintainers dont just provide the build file but the actual compiled binary aswell. Arch is the only distro i know of that does this and it seems like a huge security flaw. So, has it been fixed now?

8 Upvotes

17 comments sorted by

10

u/LrdOfTheBlings 4d ago edited 4d ago

-12

u/Big-Astronaut-9510 4d ago edited 4d ago

This dosent matter because tons of packages that basically everyone will install are not reproducible.

love how i got downvoted but clicking that link will confirm what i said

7

u/LrdOfTheBlings 4d ago

Then I don't understand what your concern is. You want package maintainers to also build and upload copies of the binary packages? Some maintainers are responsible for thousands of packages.

-8

u/Big-Astronaut-9510 4d ago

Thats what they already do. I want everything compiled on a build server.

13

u/virtualadept 4d ago

Great - get out and push! We can always use help.

12

u/AppointmentNearby161 4d ago

The fact that devs can upload built packages instead of the using the build server is only a small issue given the crappy security model of the build server. Basically, all devs have full root permissions on the build server so can do whatever they want: https://gitlab.archlinux.org/archlinux/devtools/-/merge_requests/114

1

u/Big-Astronaut-9510 4d ago

Wow i didnt know that.... does not inspire confidence.

6

u/AppointmentNearby161 4d ago

From the merge request

There are around 10 different ways to escalate privileges just from the top of my head, at least 2 of them are "virtually impossible" to fix by design.

What system administrator in their right mind installs software on a multi user server that has multiple known trivial exploits. The current build server solves a problem for the devs, but doesn't provide any extra security for users.

5

u/backsideup 4d ago

No, it's still in the works. How is that a security flaw, though?

7

u/Big-Astronaut-9510 4d ago

Its easy to audit a build file but not a compiled binary. So having packagers provide binaries vastly increases how much faith we have to put in each individual one.

8

u/ProjectNo7513 4d ago

But like every other distro also ships binaries?

7

u/Big-Astronaut-9510 4d ago

The packager only writes the build file and a build server is responsible for compiling it. In arch the packager compiles it on their personal computer.

5

u/ProjectNo7513 4d ago

Huh, good to know

0

u/backsideup 4d ago

Most packages are reproducible: you don't have to trust the maintainers, you can verify. But even if the maintainer built it on a central system, you'd have to rebuild the package in order to verify that the input and output check out.

4

u/AppointmentNearby161 4d ago

In one case you are trusting the build server to build the package as written and in the other case you are trusting the dev and more importantly the machine the dev built the package on.

1

u/archialone 2d ago

I wouldn't call it a security flaw, just the state of software build systems currently.