by cs702 · 10y ago · 0 comments
Speaking as day-to-day desktop Linux user, a working sandboxed-app model would be a BIG improvement over rpms and debs. I would LOVE to be able to install any version of any application, or multiple versions, independently of OS and library versions, without having to compile from source code, grapple with conflicting dependencies, etc.
Are there any F/LOSS alternatives to Snap that are as widely used and tested? If there aren't any, Snap is really our "least worst" alternative.
The focus when clicking on chrome did not work anymore (http://askubuntu.com/questions/760654/cick-to-focus-is-not-w...).
When my computer enters in sleep mode, I can wake it with a press on enter. The next time, it enters in sleep mode, I can not wake it up anymore.
I have fixed the two first issues and worked around the third one. I dream ubuntu becomes more used, but these kind of issues is blocking.
1: https://launchpad.net/ubuntu/+milestone/ubuntu-16.04.1 2: https://help.ubuntu.com/community/ReportingBugs
In that way there's not going to be much FLOSS interest. No one in FLOSS-land wants to admin a box with seven different statically linked SSL libraries all of different ages and different vulnerability exploits all relying on the app vendor as a single point of failure as the only source of non-FLOSS binary packages. FLOSS devs could "improve" the sandbox system by having the OS provide one patched up to date and secure SSL library for all applications to dynamically link to. Being FOSS this is not a legal problem and the OS vendor existing means one person on the planet has to be "in charge" of it and it'll just work for everyone. It doesn't work so well with commercial closed source non-FOSS vendors. Oh well. Sucks to be them. I don't miss them.
Or, how does "does one thing and does one thing well and interoperates with all the other finely honed tools" FOSS philosophy match with a sandboxed app architecture? It seems the opposite, the purpose of the sandbox is to create a NIH monolithic app. If I wanted to run windows, I'd just run windows, not emulate its architecture on a unix-like system. It seems like a lot of work to turn linux into windows... why not just use windows and not mess up linux?
The pool of FLOSS sandbox devs would be restricted to FLOSS devs who want to shoot FLOSS in the foot to make life easier for non-FLOSS devs and harder for everyone else, and disagree with core beliefs of FLOSS philosophy of design and architecture. Other than that lack of motivation, no problem.
For Flatpak, the scope is limited to just desktop apps. Then to break out of the sandbox it'll provide 'Portals'. They work a bit like Mac OS X / Android / iOS. The goal is to limit the permissions by default. User interaction of portals should be great, you don't really notice the difference. Portal support will only come to GTK as of 3.22 (September 2016), see https://blogs.gnome.org/mclasen/2016/07/08/portals-using-gtk.... Until Qt/GTK+ supports these portals Flatpak does NOT fully sandbox else you'd have problems using the app. Sandbox is done using standard kernel functionality (namespaces, etc).
Snappy requires AppArmor. Without that, no sandboxing. There's a promise to also support SELinux, though not sure what timeframe they intend. Snappy on distributions without AppArmor (e.g. Fedora) will NOT sandbox the app! Snappy IIRC is not just limited to desktop apps, which IMO limits the sandbox options.
AppImage can do sandboxing using other software (Firejail) which again relies on AppArmor. It seems the AppArmor profile comes with the app, which IMO defeats the security. This as IMO it would be nice to not have to trust the app you just installed.
For all above: any effective sandboxing requires Wayland/Mir, not X11. Noticed someone said you might be able to make X11 secure by putting an app within xephyr/xnest security filtering like program, but IMO that's a blue sky idea (tell me once it works and one of the sandbox solutions provides full integrated support).
Set each up as having their own root window and the problem vanishes.
Some will complain that the solution screws up GPU graphics. But thats only the case because devs could not be assed to hash out a proper channel through X, and instead went straight for the hardware. Never mind that there is a patched xephyr with opengl support out there.
BTW, another option is xpra.
I imagine something similar might come alone using docker, but really we just need LFSH reform.
What it does is put the output of a "make install" or similar into its own name/version branch in the directory tree, and then use symlinks to place those files within a traditional FHS for backwards compatibility.
As with any small distro is has a problem with manpower, especially as certain parties involved with big name distros are hell bent on rebuilding everything around their vision of the Linux desktop.
I think the current maintainer is aiming at getting a new release out "soon", and was looking into providing a tool that could build an ad hoc "jail" for a program and its specific tree of dependencies.
While not released yet I'm thinking WebAssembly and browser APIs should eventually cover this use case - I expect browsers to expose more sandboxed versions of native APIs and the browser will become the new OS for desktop OS.
People will probably start experimenting and packaging their own browser builds with extra APIs that don't get released in to web browsers right away - like Electron - instead of running node it would just expose more stuff to the browser JS/WASM.
Yes, let's throw away all the great toolkits (Qt, Cocoa, etc.) that we have, which have developed into an extremely stable base over the past 20 years, with look & feel consistency between applications, and replace it by some experimental browser tech and constantly reinvented web frameworks. </sarcasm>
On a more serious note: I think sandboxing application for existing toolkits is a problem that is far easier to solve than changing browsers into general purpose operating systems with consistent UIs.
In fact, Snap, Flatpak, etc. already implement many of the necessary bits and it's been done before on UNIX (Sandboxed macOS applications). Of course, Linux has to switch to Wayland for GUI isolation, but that'll be true for any solution.
I don't think you understand how WASM works. Qt can compile and work on GLES 2.0 (WebGL) and WASM is just a sandboxed bytecode that maps closely to CPU instructions and C memory model, meaning you could run Qt apps inside of WASM/Browser sandbox, and given the small size of WASM binaries compared to ASM.JS that's feasible even considering the size of Qt.
Browser with WASM is just a sandbox on top of native APIs and some chrome - it's essentially the app model for desktop with low friction distribution - you have back/forward, easy switching/kill, resource sand-boxing, etc. just like you do on your phone.
I do. And most of this you could already do for a while without Web Assembly, either native using e.g. NaCl or compiled to Javascript/Asm.js (Emscripten). Running Qt in the browser it not some future, it is already possible.
The problem is that if you go that route, you lose a lot of platform integration. Moreover, you throw in another layer for what is practically a solved problem (the Linux kernel has all the necessary bits for sandboxing, which Chrome et al. also use for sandboxing).
it's essentially the app model for desktop with low friction distribution
As someone who distributes a Qt application on Windows, Linux, OS X. I don't need this. I just need to be able to distribute one app bundle that works on all Linux distributions. OS X and Windows are already a walk in the park. And by having a native app, I have proper integration now (e.g. Full Screen, Dock, and file association support on the Mac).
just like you do on your phone.
My phone uses native apps, thank you.
(Though is it is in the process of switching to LLVM bytecode.)
It took Keith Packard a few hours to fix this problem in Xorg.