JustMrNic3•

Why does the sandbox must be made with WebAssembly?

7
kickass_turingNightly|Fedora•

Because they are written in C/C++. It's a different layer of isolation compared to the process one that already exists. This isolation, sandboxes the libaries.

6
JustMrNic3•

Ok, but why Webassembly is required for C/C++ code ?

Sorry but still doesn't make sense to me.

Personally for my privacy and security I disable WebAssembly as I don't want blackbox code running in my browser and using my system resources for whatever it might be doing.

I wonder if this security feature will still work as it's dependent on WebAssembly.

2

According to the post this happens in the build process - there is no webassembly running on your system as a result of this.

So the build goes:

C/C++ -> WASM -> C -> compiled code

As for why:

"However, the transformation places two key restrictions on the target code: it can’t jump to unexpected parts of the rest of the program, and it can’t access memory outside of a specified region. Together, these restrictions make it safe to share an address space (including the stack) between trusted and untrusted code, allowing us to run them in the same process largely as we were doing before."

8