6 ms·
>Unprivileged user namespaces had some security bugs in their initial Linux implementation, and some Linux distribution maintainers are still wary of keeping th
by snvzz 9y ago
>Unprivileged user namespaces had some security bugs in their initial Linux implementation, and some Linux distribution maintainers are still wary of keeping them enabled.
Unsurprising. These are all a pile of hacks to try and fail at making up for the fact Linux doesn't support capabilities (not to be confused with POSIX Capabilities).
Fortunately, projects such as seL4 and Genode do exist, so it might be possible to, at some point, run a browser on an actually sane environment.
- ajross 9y agoYou're going to need to be more specific. Linux does indeed have a feature called "capabilities", so it's not clear exactly which OS feature you are taking about.
- snvzz 9y agoLinux Capabilities are POSIX Capabilities, which are a very different thing, with a quite misleading name. From the wikipedia capabilities article[1]: >Capabilities as discussed in this article should not be confused with POSIX 1e/2c "Capabilities". Also refer to the Genode Foundations[2] book, chapter 3.1. [1] https://en.wikipedia.org/wiki/Capability-based_security https://en.wikipedia.org/wiki/Capability-based_security [2] https://genode.org/documentation/genode-foundations-17-05.pdf https://genode.org/documentation/genode-foundations-17-05.pd...
- DyslexicAtheist 9y agoI second that. Genode isolation of concerns is absolutely beautiful.
- AnIdiotOnTheNet 9y agoI eagerly await the day some non-Linux kernel manages to achieve anywhere near the driver support Linux has.
- conradev 9y agoI have hope for Zircon/Fuchsia, because I'm sure the goal, at some point, is "everything supported by AOSP and all Chromebook hardware" which I hope would be enough to bootstrap the positive feedback loop of people contributing drivers…
- monocasa 9y agoWell, it's MIT licensed and pushes most drivers into user space, so no one has to contribute drivers back at all. : /
- snvzz 9y agoAnd yet the BSDs have plenty of drivers. How is that possible? No, the GPL isn't magic.
- monocasa 9y agoThe BSDs are nowhere near Linux when it comes to driver support. Particularly when it comes to mobile devices like what fuschia is targeting, I don't even know if you can run a BSD with what exists currently.
- nickpsecurity 9y agoTwo groups in L4 family used driver VM's that had just enough of Linux to use the drivers. Depending on compatibility vs isolation, you could put your driver-dependent code in that VM, use it via a virtual driver from another partition, or use a native driver on microkernel. I believe OK Labs used that mix for their OKL4 platform for mobile virtualization. It got deployed in what they said was a billion phones mainly for baseband isolation. So, it's doable. There was also a project a long time ago that combined virtualization with Windows to use its drivers. Stuff like that seems best solution for now where we can incrementally build native drivers over time. At least until cross-platform synthesis is built and takes off. ;)
- 9y ago
- fpoling 9y agoWith mount namespaces one can emulate capabilities usind bind-mounts and file descriptor passing, but this is indeed rather limited hack at best.
- monocasa 9y agoAlso with Unix domain sockets and file descriptor passing.