Skip to content

Can language level regions be used to support compartmentalisations? #597

Answered by davidchisnall
SaiVK asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @SaiVK. Sorry for the delay getting back to you, I was on holiday last week.

This is, indeed, one of the goals for regions. We want to have a fully type-safe and concurrency-safe language that remains safe in the presence of foreign code. This requires that we have language-level abstractions for managing unsafe code.

The foreign code design doc explains how we expect to map instances of unsafe libraries into objects in regions, with one region per compartment. The process-based sandboxing experiment contains code to surface this abstraction on top of existing OS processes. We expect to be able to use SFI (e.g. from a WebAssembly runtime) and CHERI to support the same abstractions and …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SaiVK
Comment options

Answer selected by SaiVK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants