News for hackers. Stuff that matters.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by lmm on Tuesday November 10, 2020 @10:02PM (#25055074)
After the Debian SSH key bug I'd say it makes all the sense in the world.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by stouset on Tuesday November 10, 2020 @11:32PM (#25055504)
That was twelve years ago.

Do you think equally-bad bugs haven’t made it into upstream projects directly? Hell, many downstream patches exist to fix security bugs.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by lmm on Wednesday November 11, 2020 @12:26AM (#25055737)
> That was twelve years ago.

It was a predictable result of Debian policy, which Debian did not see fit to change. Debian still patches upstream sources including security-critical software, still does not have any dedicated security review of those patches, still leaves it up to individual maintainers to decide whether and how to clear these things with upstream, and still thinks all of this is fine.

> Do you think equally-bad bugs haven’t made it into upstream projects directly?

Honestly, I can't think of a single equally-bad bug in "normal" code, only in medical devices / industrial controllers / etc.. Cloudbleed wasn't this bad. Bumblebee deleting /usr wasn't this bad. It really was a uniquely awful bug.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by deknos on Wednesday November 11, 2020 @02:26AM (#25056238)
> It was a predictable result of Debian policy, which Debian did not see fit to change. Debian still patches upstream sources including security-critical software, still does not have any dedicated security review of those patches, still leaves it up to individual maintainers to decide whether and how to clear these things with upstream, and still thinks all of this is fine.

It's not fine, but when the upstream authors do not regard or consider requirements of downstream projects, what can you do? like with the example of phonehome features?

arch and other distros are only possible, because for a long time, debian and other distros kept nagging the upstream authors for missing features or "nonfeatures". if debian wouldn't exist, i bet, arch had to patch much more itself.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by BlackFingolfin on Wednesday November 11, 2020 @03:26AM (#25056537)
> It's not fine, but when the upstream authors do not regard or consider requirements of downstream projects, what can you do?

Well, as one of those upstream authors whose code was patched: I was never contacted about it, so I never knew there was a requirement to be met, and so they carried around a bad patch for years, about which I knew nothing. Once a user pointed this out to me, the next release fixed the underlying issue in a better way. After years in which the Debian folks didn't file an issue or report the problem in any way that I could tell.

Mind you, Debian is not alone in this, it happens with other distros, too.

And to be fair, I think this rather depends a lot on the downstream package maintainer; I've witnessed this with other projects where they were quite good in interacting with upstream to get something sorted out. I am not really sure if any policy Debian/Fedora/... could enact would really help with it; people can (accidentally or intentionally) ignore them.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by deknos on Wednesday November 11, 2020 @07:02AM (#25057649)
> Well, as one of those upstream authors whose code was patched: I was never contacted about it, so I never knew there was a requirement to be met, and so they carried around a bad patch for years, about which I knew nothing. Once a user pointed this out to me, the next release fixed the underlying issue in a better way. After years in which the Debian folks didn't file an issue or report the problem in any way that I could tell.

the maintainer made an error there. did you open a bugreport that you fixed it so the patch is not necessary?

> And to be fair, I think this rather depends a lot on the downstream package maintainer; I've witnessed this with other projects where they were quite good in interacting with upstream to get something sorted out. I am not really sure if any policy Debian/Fedora/... could enact would really help with it; people can (accidentally or intentionally) ignore them.

yeah and that's the point. people in this thread (not you as far as i see) say they do not trust debian because of this, but other distributors and packagers? do they have technical or organisatorial fences for avoiding such mishaps? if not, then other distributions are as problematic as debian, even arch.

debian did a whole lotta good for Free software and i really start to dislike how people shit on the project (again not you).

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by lmm on Wednesday November 11, 2020 @08:09PM (#25065128)
> other distributors and packagers? do they have technical or organisatorial fences for avoiding such mishaps?

Many distributions have a dedicated security team that has to sign off any patches to security-critical software. Debian's position is that they do not have the resources for such a team, which is fair enough, but IMO the conclusion should be that they don't have the resources to be applying their own patches to security-critical software.

More subjectively I get the sense that Debian packagers patch more aggressively and generally think the Debian way of things is better. This isn't completely groundless: there's a lot of very high quality engineering in Debian, and for a long time their package management was head and shoulders above others, especially if we're talking about C programs/libraries where upstream dependency management is very weak. But it's also made for a culture where packagers think they know better than upstream maintainers, and an approach that ends up conflicting quite a bit with newer languages where there is high-quality dependency management in the upstream builds.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by eeZah7Ux on Thursday November 12, 2020 @06:39AM (#25068758)
> Many distributions have a dedicated security team that has to sign off any patches to security-critical software

This is false. Debian has a security team and it's way more active than most distributions.

> But it's also made for a culture where packagers think they know better than upstream maintainers

Yes and for good reasons.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by cutemonster on Wednesday November 11, 2020 @09:49PM (#25065863)
> Many distributions have a dedicated security team

Which are some of those distros? (I'd consider using myself in the future)

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by gspr on Wednesday November 11, 2020 @03:30AM (#25056562)
> Well, as one of those upstream authors whose code was patched: I was never contacted about it, so I never knew there was a requirement to be met, and so they carried around a bad patch for years, about which I knew nothing.

In my experience it's rather uncommon for a DD not to contact upstream. Would you mind sharing the package name and vulnerability so I and others can learn what happened?

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by ldarby on Thursday November 12, 2020 @03:07AM (#25067602)
If we're still talking about the Debian SSH key bug in 2008, here is the Debian bug (from 2006) that led to the security issue, which was discovered in 2008: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=363516.

Upstream was contacted about it: https://marc.info/?t=114651088900003&r=1&w=2

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by bityard on Wednesday November 11, 2020 @09:14AM (#25058536)
You seem to be _almost_ implying that the packager maintainer had some sort of obligation to notify you that your software was being shipped with Debian? And also that you didn't know about it for years?

On the flip side of the coin, there are plenty of open source authors who release their work into the wild and refuse to support or even engage with downstream packagers because they see any other distribution or use of their work as Not Their Problem. And they're not really wrong, building a supportive community around a useful project is totally optional after all.

Between the constant stream of version bumps, security updates, patching, bug triaging, and user support, distribution maintenance seems to be the most thankless job in the open source world.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by lmm on Wednesday November 11, 2020 @03:20AM (#25056504)
I agree that patching upstream sources is sometimes necessary. I think Debian is overly aggressive about it (hypocritically so in places: they will patch upstream to comply with the FHS, but won't change their own packaging to comply with the LSB). More to the point, I think patching security-critical packages needs to be treated as a special case and subject to appropriate review (as many other distributions do).
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by mrslave on Wednesday November 11, 2020 @12:30AM (#25055760)
I also haven't used Debian since. No, we are not naive as to the presence of security related bugs elsewhere (e.g. Heartbleed). Just a lot of reputation was lost.

It was interesting because the cause was a patch crafted to satisfy a static analysis tool they insisted on applying to every package, which demonstrated their want to go above and beyond with respect to quality. Kudos to Debian in that regard. But a blindly applied policy, and bad judgement in disabling some cryptographic initialization code, caused a terrible bug.

I wonder if this is less of an issue today because of well defined kernel interfaces for getting "good" random numbers (i.e. cryptographically suitable). I'm sure the devil is in the details, and OpenSSH's support for unpopular systems means intentional use of uninitialized variables is still in the code base. It's all very impressive to an outsider who knows enough not to tell cryptographers how to do their job.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by unixhero on Wednesday November 11, 2020 @04:22AM (#25056860)
Which Linux distrib do you prefer?
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by mrslave on Wednesday November 11, 2020 @05:43AM (#25057266)
Good question without an easy answer. I was a long-term Gentoo user but recently dumped it for NixOS. Colleagues were pushing it and so far I'm happy. Much less compiling and manual configuration which is what was driving me crazy about Gentoo. It took rather little effort to get the system in a state that feels very comfortable. But my needs have changed over time too, so this isn't strictly my opinion on what is best.

More than a decade ago a programmer friend got Ubuntu running on a second hand desktop for a rather computer illiterate arts & letters student. He was able to navigate the GUI like any other system, and it had Firefox, OpenOffice, and mplayer. I knew then that Linux is a perfectly fine desktop OS. And now we're back to using Debian of a sort. ;-)

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by lloydatkinson on Wednesday November 11, 2020 @05:53AM (#25057305)
> I also haven't used Debian since.

I stopped using Debian when its ridiculous "free" purely ideological approach to software actually caused me issues.

I needed to install Debian on a relatively old laptop a few years ago. It had all "mainstream" hardware. It's WiFi adapter was an Intel one (and a very common/popular one at the time), but it was one that wasn't open source.

How did Debian approach this? It's installer gave me a not very subtle passive aggressive message telling me that although they have the drivers for the device, it was not going to install them... because the ISO did not include them. With no working WiFi, it of course could not connect to the internet to download them! Worse still, turns out that even if it had connected to the internet it wouldn't have downloaded and installed them anyway. I found this out because I managed to use an Ethernet connection.

Completely stupid and frustrating and it felt like I was being blamed as if it was my fault.

Installed Ubuntu, included the drivers, connected to WiFi during the installation.

I have not used Debian on anything since.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by smcl on Wednesday November 11, 2020 @07:02AM (#25057646)
The problem is that they aren't very clear about what you might be missing with the standard Debian image you get when you click the big "Getting Debian" link at the top of their homepage. I imagine that many people such as yourself were put off by the fact that they downloaded Debian and thought it was crippled out of the box.

They do provide "nonfree" install media which include firmware blobs that many people need to get their wifi up - https://cdimage.debian.org/cdimage/unofficial/non-free/cd-in.... But it's not easy to get there (I google "Debian nonfree") and it has "unofficial" in the URL which I imagine doesn't help things either.

I understand that Ubuntu is meant to be the user-friendly Debian-based distro and that Debian is meant to be Free Software first and foremost. I just wish that this nonfree install image was a bit more official and easier for users to discover.

edit: oops, I should refresh before hitting "reply" I didn't see the other answer

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by mehrdadn on Wednesday November 11, 2020 @07:22AM (#25057744)
Kind of off-topic, but do you know why they call drivers "firmware"? I thought "firmware" was the code loaded internally in the hardware, and "driver" was the software in the OS that interacted with it (to "drive" it to do what it needs)? This confused me for a long time—I used to think "I've already updated all the firmware on all of my laptop's components, so I don't need extra bundled firmware" at some point, until I realized that's not what they talked about at all. Any idea why they call their drivers "firmware"? I feel like I might not be the only person who's been misled by this in the past.
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by smcl on Wednesday November 11, 2020 @07:36AM (#25057800)
I think your original understanding is correct - what we're calling "drivers" are run by the host OS and CPU to interact with a peripheral over PCI, USB, SPI, OWI, whatever. And "firmware" is some special software required by the device itself to run (could be some ARM or MIPS binary or whatever arch is used by CPU(s) on the device). I guess that some peripherals have firmware on non-volatile storage while others require it provided by the host when they're initialized.

So the "firmware" I required for my Thinkpad's wifi to work (and which was included in that Debian nonfree image) is this: https://wiki.debian.org/iwlwifi

update: actually on that Debian wiki there's a page called "Firmware" which explains things well https://wiki.debian.org/Firmware

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by mehrdadn on Wednesday November 11, 2020 @07:41AM (#25057831)
Oh interesting, I didn't realize that. Thanks!
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by DJHenk on Wednesday November 11, 2020 @06:21AM (#25057429)
You might already know this, but there are Debian versions that address this situation: https://cdimage.debian.org/images/unofficial/non-free/images...

I like it that that try to focus on a completely free version, as that is what they stand for and why a lot of people respect them, while at the same time being realistic about the real world problems that people face.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by mrslave on Wednesday November 11, 2020 @07:41PM (#25064885)
It is funny though. Debian builds a great product with an unpopular/impractical ideology (not a judgement). Ubuntu comes along, adds a little on top, throws out the ideological constraint, and achieves great market success!

And Debian is great. We might take it for granted now, but 2 decades ago while everyone else was fiddling with their own package dependencies with RPM (pre-Yum) Debian had amazing package management with builds for all sorts of amazing architectures. They were leaders both in thought and execution.

I tried (but failed) to influence an employer to invest more in Debian; instead they went with SuSe which eventually caused a few small problems. Now Debian & Ubuntu are booming.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by lloydatkinson on Thursday November 12, 2020 @09:21AM (#25070123)
Somehow doesn't surprise me I've upset the neck beards
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by apexalpha on Wednesday November 11, 2020 @03:19AM (#25056499)
People who run Arch want this to happen.

It validates their hobby-like approach to their OS.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by powercf on Wednesday November 11, 2020 @10:43AM (#25059260)
> People who run Arch want this to happen.

I've used Arch for the last six+ months and I don't want this to happen.

I switched as I couldn't get VFIO to work with Debian (presumably due to outdated kernel/qemu/libs). In my time with Arch I have had no problems. It has just worked and stayed out of my way. My experience with Debian is that it mostly works, but often uses much older software than one wants. Arch, in my limited experience, is an excellent distribution.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by alekq on Wednesday November 11, 2020 @12:25PM (#25060403)
That is the "curse" of Linux I always had difficulty to understand: something does not work at all or the way I like it - switch the god-damn OS (= distro) where it works instead biting the bullet and trying to fix it. It's insane...

This is only personal observation, not direct remark to your case. I've just seen similar scenarios too many times.

On the other hand - I've played with Arch since early beginnings, but last time more than 10 years ago. Although minimal, simple and straightforward, I have never been able to grope that rolling-release core philosophy.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by MrDresden on Wednesday November 11, 2020 @03:27AM (#25056544)
Could you elaborate on what you mean?
Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by apexalpha on Wednesday November 11, 2020 @04:14AM (#25056823)
In my job we have 100+ people who run Linux as their main OS.

Most run Ubuntu or Debian, and a few run Arch. And every few weeks someone mentions again how something broke, and they need to spend some time fixing it. I think the last one was VMWare not working on a kernel yet.

Arch requires more time to maintain, and more manual maintenance. So in order to justify that extra spent time a lot of times they will bring up minor stuff that happens in Debian/Ubuntu, like this bug from 12 years ago, in order to justify running Arch, which is more of a "learn Linux" hobby.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by bjoli on Wednesday November 11, 2020 @06:45AM (#25057558)
I was bitten by the rolling release arch many times on Arch Linux ARM. The last straw was when they decided to move the configuration directory for openVPN, which meant it just failed to start up, meaning I could not SSH into it. I had to retrieve it to debug it, costing me hours of lifetime I would rather have done something else with.

I learned my lesson. From now on it is boring LTS distros only, and guix for things in userland where I want up to date things.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by gruelsandwich on Wednesday November 11, 2020 @05:47AM (#25057283)
In my experience, the "learn Linux"-part of using Arch is the installing/setup process. Over the past three years, I have had things break perhaps three times. All of them were either my own fault (outdatet package) or warned about through Arch News (which I didn't bother to check because it is only necessary a couple of times a year)

That being said, running Arch on a computer that you need to be working at all time, might not be a good idea for professional reasons. However, I think you are essensially making a similiar argument for Arch, as they are making for the Debian bug.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by npsimons on Wednesday November 11, 2020 @09:58AM (#25058876)
> Arch requires more time to maintain, and more manual maintenance. So in order to justify that extra spent time a lot of times they will bring up minor stuff that happens in Debian/Ubuntu, like this bug from 12 years ago, in order to justify running Arch, which is more of a "learn Linux" hobby.

This is the feeling I get, and it's why I never bothered with Arch, or Gentoo before that. I started on Slackware, and while it was a great learning experience, I feel that's not a lesson I need to repeat.

Same reason for my move from RedHat (after an RPM dependency breakage) to Debian: Debian just works. It GTFO of my way and let's me focus on my code and my projects. Yes, there have been issues, no, Debian isn't "perfect", but like my preferred MUA "it sucks less than all the alternatives."

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by howlgarnish on Wednesday November 11, 2020 @04:39AM (#25056949)
For others wondering what this was referring to: http://taint.org/2008/05/13/153959a.html

TL;DR: To silence a valgrind warning, Debian maintainers added a local patch to OpenSSL that commented out the entropy pool, making all SSL keys predictable.

Re:How to get root on Ubuntu 20.04 by pretending nobody’s /home by Dylan16807 on Thursday November 12, 2020 @12:55PM (#25072545)
More specifically, they made a valid change that silenced a valid warning, and then in a terrible mistake they found a line somewhere else that looked the same and made the same change to it too.