Hacker News new | past | comments | ask | show | jobs | submit login

Are there any programming languages that can sandbox library imports?



Yes/no. The Java security manager can, but it was deprecated ;-(

I know it was a pain to use correctly. But still.


Not really, except for a few researchy object capability based systems. (This is kind of the promise of ocap systems: functions you call can only use what they're given and nothing more.)

If you don't trust a library, you can run it in a separate sandboxed process (or app domain, or wasm container, or whatever your language provides).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: