Re:Compiling to WebAssembly: It’s Happening
by mdavidn on Friday December 18, 2015 @04:06AM
(#10757478)
The process model is a sandbox. Every process runs as if alone, with seemingly continuous processor time and memory addresses starting at zero. The ailments you described are all system calls, special access granted by the kernel.
So the process model is not fundamentally different than the browser model, but WebAssembly enjoys two advantages:
1. The browser security model sagely segmented privileges by origin rather than user.
2. Like bytecode, WebAssembly AST does not target a specific processor.
Re:Compiling to WebAssembly: It’s Happening
by aboodman on Friday December 18, 2015 @06:57PM
(#10761847)
Totally agree. The process model is actually a better sandbox than, e.g., Firefox per-origin one (because it sandboxes CPU time and memory as well). But the shape of the sandbox is incorrect for the modern era.
Re:Compiling to WebAssembly: It’s Happening
by andrewchambers on Friday December 18, 2015 @02:15AM
(#10757160)
It seems like the real solution is to have proper sandboxing in the OS's, though it would take much more coordinated effort to accomplish.
I see no reason why each domain couldn't have a chroot for example, the browser doesn't need to implement those things.
Re:Compiling to WebAssembly: It’s Happening
by pjmlp on Friday December 18, 2015 @02:43AM
(#10757231)
> Your current (desktop) operating system allows these binaries to run with your full user privileges.
Actually it can sandbox them already.
Current (desktop) operating systems were not designed for a world where you routinely run code from someone on the other side of the planet who you have no relationship to, and don't trust, so you can see cat pics or read a forum.
Browsers have a lot of problems, but their security model and ephemeral install model are inspired designs, which directly enable the safety of the modern internet.
Having to fall back to classic desktop apps for real speed or power is a terrible thing for end-user security. Either browsers need to get more powerful, or desktop OSes need to take on a browser-like security model.