3 ms·
Hi, one of the project's co-authors here (SAPI that is). The aim of SAPI is a bit different than whole-process sandboxing. It's about retaining the original ru
by jagrsw 5y ago
Hi, one of the project's co-authors here (SAPI that is).
The aim of SAPI is a bit different than whole-process sandboxing. It's about retaining the original running speed (and lack of sandboxing constraints) of the main project part, while making sure that only some parts are isolated (sandboxed), and the programming interfaces to the sandboxed parts still look familiar.
I'm not that well-versed into how WASM works when it tries to integrate with the rest of OS. But I'd assume it's some form of whole-process sandboxing, where practically all code is WASMized, and only some kind of loaders and trusted stubs are written in native assemblers (something has to invoke syscalls in the end).
In this case one can use Sandbox2, which is part of SAPI, though not very prominently exposed - https://github.com/google/sandboxed-api/tree/main/sandboxed_api/sandbox2 https://github.com/google/sandboxed-api/tree/main/sandboxed_.... It's a full-featured Linux sandbox in its own rights, with C++ API. Examples might be englightning: https://github.com/google/sandboxed-api/tree/main/sandboxed_api/sandbox2/examples https://github.com/google/sandboxed-api/tree/main/sandboxed_...
- oscargrouch 5y agoIs this the same one that is in use by Chrome? Any plans to create more sandboxes like this for other platforms like Windows and Mac?
- jagrsw 5y ago> Is this the same one that is in use by Chrome? Not the same software, but "almost" the same underlying tech is used (e.g. SAPI/Sandbox2 used ptrace for process tracking and debugging, and to my knowledge Chrome Linux sandboxes don't). > Any plans to create more sandboxes like this for other platforms like Windows and Mac? Linux is so far a priority, but it might be technically possible to make the actual software isolation layer modularized, so it would support various underlying tech (various OSes, or even different tech under a single OS).
- kleton 5y agoIs this intended to replace older Google App Engine sandboxes, nacl and gvisor?