News for hackers. Stuff that matters.
Re:What is Silverblue? by lugg on Sunday July 14, 2019 @12:41AM (#20431666)
Flatpaking all the things? I'm not sure why there is this push for Linux to have the "download and double click" install experience of windows / Mac. Convenient to install sure, but as a user its a nightmare to maintain/update.

All people on Linux really need is an xdg-open standard for opening a package manager / running an install command.

Re:What is Silverblue? by pkulak on Sunday July 14, 2019 @12:55AM (#20431708)
They are updated and maintained automatically, even if your distro isn't.
Re:What is Silverblue? by danieldk on Sunday July 14, 2019 @02:49AM (#20432063)
What do you mean by 'maintained' automatically? Many flatpaks use their own custom compiled dependencies that are outdated. I took a frequently-used dependency used to decode untrusted data (ffmpeg). Many Flatpaks on Flathub use outdated ffmpeg versions. Some examples:

- VLC ships with a slightly older version of ffmpeg (4.1.3) with two known CVEs:

https://github.com/flathub/org.videolan.VLC/blob/f1b27c13b13...

- MakeMKV uses an outdated ffmpeg (4.1.0), which has several known CVEs:

https://github.com/flathub/com.makemkv.MakeMKV/blob/3c44c8bc...

- Openshot uses an outdated ffmpeg (4.0.3) which has several known CVEs:

https://github.com/flathub/org.openshot.OpenShot/blob/ec2077...

This is what you get when every application ships custom dependencies, rather than having a consistent package set.

(I like the idea of Flatpak, but I think it hasn't found its optimum yet in terms of dependency management.)

Re:What is Silverblue? by Jasper_ on Sunday July 14, 2019 @07:20AM (#20432843)
Blindly updating ffmpeg without the app being tested for it is a recipe for disaster -- ffmpeg has made API breaks in the past, and that meant that when an ffmpeg system update was required, all projects depending on it would need to upgrade to the new API.

So often, a distribution would be held back on an old ffmpeg (perhaps patched with some of the CVE fixes by a distro maintainer who might not be familiar with the codebase) to isolate the churn of upstream.

flatpak lets app maintainers update at their leisure, which actually gets them on a faster update cycle.

Re:What is Silverblue? by Yuioup on Sunday July 14, 2019 @03:30AM (#20432207)
Aren't flatpaks sandboxed? Does that help mitigate the risk somewhat?
Re:What is Silverblue? by danieldk on Sunday July 14, 2019 @04:30AM (#20432401)
Theoretically yes (minus you are only one kernel vulnerability away from elevated access). However, a lot of Flatpaks take blanket access to the home directory or host filesystem:

https://github.com/search?q=org%3Aflathub+%22--filesystem%3D... https://github.com/search?q=org%3Aflathub+%22--filesystem%3D...

So, many applications use it as a distribution mechanism and not so much for sandboxing. Of course, this is bound to get better over time when applications are modified to support sandboxing better and can use portals.

IMO you need both: isolation through e.g. sandboxing and timely security updates of applications and all their dependencies. Flatpak currently provides the former for some applications and the latter is completely dependent on the maintainer of the Flatpak.

Re:What is Silverblue? by lugg on Sunday July 14, 2019 @01:01AM (#20431726)
Right up until they're not because they pegged the version of some library.

If things were so easily automatically updated and maintained we wouldn't need flatpak.

One benefit is that if you have some software in the chain blocking updates others can update.

This may actually improve overall security.

I think I just argued myself out of hating flatpak. :/

Which is cool, because that os-tree switching thing sounds like btrfs snapshot hopping on steroids.

Re:What is Silverblue? by saltedshiv on Sunday July 14, 2019 @12:44AM (#20431676)
Are flatpaks not all sandboxed? I thought the concept of flatpak and snap was that it offered sandboxing in a way what was never implemented to normal repo packages
Re:What is Silverblue? by lugg on Sunday July 14, 2019 @12:55AM (#20431706)
Flatpak uses kernel namespaces (like docker) to run software with a bundled set of libraries. From their FAQ:

> Flatpak mostly deployed as a convenient library bundling technology early on, with the sandboxing or containerization being phased in over time for most applications.

I don't really know if sandboxing is worth it for me. Running everything inside docker cotnaienrs sounds like an absolute nightmare when it comes to troubleshooting. You might think logs and things would be well defined and put in the right place for the OS to pick up, but if things were so well behaved we wouldn't feel the need for sandboxing now would we.

Re:What is Silverblue? by sjellis on Sunday July 14, 2019 @03:33AM (#20432216)
They are also adding per-application isolation of settings:

https://blogs.gnome.org/mclasen/2019/07/12/settings-in-a-san...

Flatpak is one piece of a broader design to secure Linux workstations. It is also intended to work in conjunction with Wayland and the in-development Pipewire. These lock down video and audio respectively, so that shared resources can't be misused by applications.

Re:What is Silverblue? by danieldk on Sunday July 14, 2019 @02:26AM (#20431980)
we wouldn't feel the need for sandboxing now would we.

Applications have vulnerabilities. Sandboxes help as an additional layer of security for trusted applications.

Of course, if applications are trusted and under control, a simpler mechanism like OpenBSD's pledge/unveil may be enough.

Re:What is Silverblue? by curioussavage on Sunday July 14, 2019 @01:00AM (#20431721)
I’ve been running many applications as flatpaks for over a year without issue. Troubleshooting is not too bad either imo.
Re:What is Silverblue? by lugg on Sunday July 14, 2019 @01:04AM (#20431732)
Flatpak should be ok, I think when it's run inside inaccessible containers it won't be. Are the files sandboxed off from the user running in flatpak?
Re:What is Silverblue? by techntoke on Sunday July 14, 2019 @03:40PM (#20435487)
No, these are bind mounted. Most Linux programs have a standard configuration directory. The application files that don't change would probably be sandboxed so that they can be easily upgraded.
Re:What is Silverblue? by pcr910303 on Sunday July 14, 2019 @01:05AM (#20431736)
Not trying to be sarcastic, but opinions like this make me sure that the Desktop Linux won’t fly.

> I'm not sure why there is this push for Linux to have the "download and double click" install experience of windows / Mac.

Re:What is Silverblue? by KUcxrAVrtI on Sunday July 14, 2019 @01:26AM (#20431811)
There isn't a desktop any more, we might as well be trying to make Linux for the mini computer if you're chasing the desktop market.
Re:What is Silverblue? by pcr910303 on Sunday July 14, 2019 @03:24AM (#20432190)
I was meaning consumer-targeted-computers (which includes laptops).
Re:What is Silverblue? by meruru on Sunday July 14, 2019 @02:26AM (#20431981)
That's a meme propagated by the news, but I'm pretty sure the desktop is still a thing.
Re:What is Silverblue? by garmaine on Sunday July 14, 2019 @02:50AM (#20432069)
...where?

No joke. I seriously don't see desktops running rich applications around anywhere, except the mini-computer / workstation use case.

Generally people are running a glorified thin terminal with a browser or putty connection to a dosbox app. People who actually do things on their own computers generally run laptops now. The exceptions are people who do demanding work loads, and they run workstations that can handle it--more like the mini-computer than the traditional office desktop.

There are public computer terminals in libraries and such, but the only reasons these are not laptops are theft prevention and the need for a large screen, keyboard and mouse.

Re:What is Silverblue? by mkl on Sunday July 14, 2019 @04:41AM (#20432428)
Laptops run desktop operating systems, and that's what pcr910303 was talking about.

Plus "putty connection to a dosbox app"? I have never heard of anyone doing that, and don't understand why they would. Or maybe you don't mean "dosbox" [1], but "console"/"terminal"?

[1] https://www.dosbox.com

Re:What is Silverblue? by KUcxrAVrtI on Sunday July 14, 2019 @09:22AM (#20433224)
Laptops aren't computers any more, they are thin clients connected a mainframe somewhere. That we call them laptops and the cloud doesn't change the use case.
Re:What is Silverblue? by mkl on Sunday July 14, 2019 @03:49PM (#20435537)
I think you are almost completely wrong here. I have hundreds of students, most of whom have a laptop running a desktop OS. Practically all of them run normal desktop apps.
Re:What is Silverblue? by garmaine on Sunday July 14, 2019 @02:37PM (#20435024)
I mean dosbox. Look behind the counter next time you're with a human bank teller or checking in at the airport. You'll find a screen running telnet connected to an instance of dosbox running on some central server.
Re:What is Silverblue? by mkl on Sunday July 14, 2019 @03:55PM (#20435590)
Bank tellers make up an absolutely tiny proportion of desktop OS users, most of whom run normal desktop apps. I have seen tellers connect to terminal apps running on a server, though, so I know what you mean.
Re:What is Silverblue? by danieldk on Sunday July 14, 2019 @02:53AM (#20432079)
Walk into any random company, there will be many desktops. Sure, some applications are web applications, but they will typically also use Microsoft Office and a smattering of more niche applications. We happen to live across an office tower. People sit and work behind desktops.
Re:What is Silverblue? by garmaine on Sunday July 14, 2019 @03:33AM (#20432217)
Interesting. The offices in the part of the world where I live generally consist of flat surfaces where employees place their company-provided laptops.

The exception is things like receptionists, or other areas where multiple employees share a common terminal. But as mentioned before, those computers are basically used as stationary, large-screen browsers or thin clients for cloud applications. Email? Excel? It's been a decade since I've seen people doing that on desktops in office environments.

Re:What is Silverblue? by etaioinshrdlu on Sunday July 14, 2019 @04:43AM (#20432434)
Even electrical/mechanical engineering workstations are primarily laptops now. There are some desktops, but the majority are higher-spec laptops.
Re:What is Silverblue? by meruru on Sunday July 14, 2019 @04:46PM (#20435888)
Obviously laptops count as desktops for the purpose of this discussion, since we are talking about desktop operating systems, which is what laptops run.
Re:What is Silverblue? by garmaine on Monday July 15, 2019 @02:17AM (#20438565)
This sub thread is about the desktop form factor.
Re:What is Silverblue? by KUcxrAVrtI on Sunday July 14, 2019 @09:23AM (#20433225)
I have not seen a desktop in a corporate environment in over a decade now.