News for hackers. Stuff that matters.
Re:WebAssembly and Back Again: Fine-Grained Sandboxing in Fi... by 7373737373 on Monday December 06, 2021 @09:40AM (#29460230)
Why is it bizarre? The Wasm function interface seems perfect for sandboxing code. It's a "whitelist" system, the contained process can only call external functions that have been explicitly attached, perfect for implementing the capability security paradigm and progressively hollowing out the attack surface by separating functionality into several instances.
Re:WebAssembly and Back Again: Fine-Grained Sandboxing in Fi... by Deukhoofd on Monday December 06, 2021 @09:44AM (#29460272)
Requiring compilation to WASM to then translate it back to C and compile it again might be a bit strange. Clang obviously already has the tools to do the WASM sanitizing, it might be really cool to have a way to directly enforce those rules outside of WASM.
Re:WebAssembly and Back Again: Fine-Grained Sandboxing in Fi... by bilkow on Monday December 06, 2021 @04:29PM (#29465962)
As I understand it, clang doesn't have the tools to sanitize WASM. It just emits WASM, which, malicious or benevolent, can't access memory outside its designated memory regions.

It's wasm2c job to ensure that the C generated enforces the WASM memory rules, so I'd say the one sanitizing the code is not clang but wasm2c.