News for hackers. Stuff that matters.
Re:Debian for Mobile by zozbot234 on Monday July 26, 2021 @06:17PM (#27966180)
Note that this is not an official Debian project, contrary to what the title implies. For the actual Debian for Mobile effort, see https://lists.debian.org/debian-mobile/ and https://wiki.debian.org/Mobile
Re:Debian for Mobile by blihp on Monday July 26, 2021 @08:41PM (#27967311)
While technically correct in that it is not the 'official' Debian project, the Mobian project fills the gaps to actually make Debian usable on mobile. It's a minimal set of packages to make the Pinephone usable and work is being done to upstream the packages. I've found it's pretty much the only way to use an otherwise vanilla Debian install on the Pinephone.
Re:Debian for Mobile by mobian on Monday July 26, 2021 @08:01PM (#27967047)
A good percentage of contributors are Debian Developers or Maintainers.

The Mobian project is uploading the majority of its packages into Debian already and the goal is to reach 100%.

At that point it will be only plain Debian.

Re:Debian for Mobile by brian_herman on Tuesday July 27, 2021 @07:38AM (#27971216)
I wish i could run vms on my apple iphones now.
Re:Debian for Mobile by neilv on Monday July 26, 2021 @06:39PM (#27966351)
Thanks.

Privacy&security trustworthiness-wise, Mobian is an unknown quantity (at least, to me).

That should be a big concern for something as sensitive as a smartphone/handheld, which tend to handle people's electronic communication, authentication for even more sensitive resources, etc.

One path to trust would be to become an official Debian project, and to be scrutinized by broader Debian people.

Re:Debian for Mobile by kop316 on Monday July 26, 2021 @07:13PM (#27966648)
While yes, it is not strictly a Debian project, there is significant overlap between the Debian on Mobile team: https://salsa.debian.org/DebianOnMobile-team

And the Mobian Team: https://gitlab.com/mobian1

Debian packaging has a nice feature too in that you can check the source used to build it, and any of the packages will be reproducible. So if you don't trust any of the Builds on the Mobian repository, you can actually check them all yourself.

Re:Debian for Mobile by vineyardmike on Monday July 26, 2021 @08:12PM (#27967120)
> you can actually check them all yourself

For any sufficiently large project, this becomes basically infeasible unless you have serious resources or known risks to account for.

"You can check the source" is almost a meme - how many people check the source of stuff they use? Likely very few. Most depend on history of trust and audits, and well funded groups paying people check.

Re:Debian for Mobile by kop316 on Monday July 26, 2021 @08:22PM (#27967182)
In learning the Debian Packaging, I have a LOT more confidence in the Debian Packaging process, and a much better understanding of why it is what it is.

Debian packaging (the quilt format) will watch the upstream git repo and will error out if the repo being packaged is different than what is upstream. The only way to add patches is to put them into the "Debian/Patches" folder and explicitly put them in there.

In addition, one of the default CI pipelines for the Gitlab called "reprotest", which checked various environment differences to ensure that the package is reproducable.

The outcome of this is it is signifiantly easier to check that a downstream package matches upstream for the average person, rather than checking all of the source, they can look at where upstream points to and check if reprotest passes.

Re:Debian for Mobile by danieldk on Tuesday July 27, 2021 @06:48AM (#27970902)
You are ignoring the main point of the grandparent. Even excluding the possibility that an upstream is compromised. Who is going to check all the patches by hand in debian/patches?

If someone is going to insert vulnerabilities, they are probably going to hide it well as an innocent-looking patch. So, you need a C security expert. Moreover, they probably need to do this work full-time to inspect every patch, since you do not really know what you are looking for.

As the recent covert introduction of vulnerabilities in the Linux kernel [1] and Debian OpenSSL incident [2] have shown, catching patches that introduce vulnerabilities is hard.

[1] https://lwn.net/Articles/853717/ [2] https://lwn.net/Articles/282038/

At any rate, I think the approach taken is fine. The project is actively upstreaming changes to Debian. But if you care about security, etc., it is probably better to wait until the changes have landed in Debian and you can install vanilla Debian.

Re:Debian for Mobile by kop316 on Tuesday July 27, 2021 @08:04AM (#27971426)
> You are ignoring the main point of the grandparent.

Respectfully, I do not think so. I went into great detail about how Debian has technical measures to prevent tampering from upstream. If one does not trust upstream programs....well that is a bit out of scope of this issue.

> Who is going to check all the patches by hand in debian/patches?

By policy, we only introduce patches there if it is absolutely necessary, so there actually aren't very many assuming you really want to. I'd argue its a tractable problem.

> But if you care about security, etc., it is probably better to wait until the changes have landed in Debian and you can install vanilla Debian.

As I said earlier, many of the Mobian devs are the same as the Debian on Mobile team, so assuming you don't trust the Mobian devs, you probably shouldn't trust the packages we put in Debian proper as well.

Re:Debian for Mobile by vineyardmike on Tuesday July 27, 2021 @03:01PM (#27976181)
> If one does not trust upstream programs....well that is a bit out of scope of this issue.

This was actually the whole point.

People say "trust us because you can check the code" but checking the code is so complex that you need trust because you can't verify everything.

> As I said earlier, many of the Mobian devs are the same as the Debian on Mobile team, so assuming you don't trust the Mobian devs, you probably shouldn't trust the packages we put in Debian proper as well.

This is where the trust comes in. Not in the availability of the code.

Re:Debian for Mobile by danieldk on Tuesday July 27, 2021 @06:41AM (#27970851)
Debian packaging has a nice feature too in that you can check the source used to build it, and any of the packages will be reproducible. So if you don't trust any of the Builds on the Mobian repository, you can actually check them all yourself.

There are still quite some packages that are not reproducible:

https://tests.reproducible-builds.org/debian/reproducible.ht...

If you look at the list, including some core packages such as gcc and Perl.

Re:Debian for Mobile by goodpoint on Tuesday July 27, 2021 @07:38AM (#27971217)
All packages in Debian are peer reviewed by Debian Developers and the package/build/upload process is transparent.

Reproducible builds are an additional safety net and you can easily check what differs between builds.

Re:Debian for Mobile by danieldk on Tuesday July 27, 2021 @09:31AM (#27972183)
You are setting up a strawman [1]. I reacted to the grandparent who stated:

Debian packaging has a nice feature too in that you can check the source used to build it, and any of the packages will be reproducible.

Which is demonstrably false, as the link in my comment shows.

[1] I never said that packages are not peer-reviewed.

Re:Debian for Mobile by blihp on Monday July 26, 2021 @08:46PM (#27967337)
Debian moves far too slowly for that to have been a viable approach. Had that been attempted, we'd be sitting here a year plus later asking why Debian still doesn't support the Pinephone. (notice that it still doesn't!) This way, we have Pinephone support today (pretty much since weeks after it was released) and the majority of the work can be upstreamed so that hopefully by the time Debian 12 rolls around it will be an officially supported device.
Re:Debian for Mobile by mobian on Tuesday July 27, 2021 @06:29AM (#27970777)
Mobian is targeting Debian Testing/Sid and uploading most of its packages in it.

Debian is currently in freeze but after the upcoming release it will start getting quick updates for every package.