Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sandboxed Plugin architecture

I was googling and searching SO for plugin architecture and I'm satisfied by general knowledge on how to implement it. Now I went further to look for a sandboxed architecture. Basically what I mean is an application with plugin whereby crashing in plugin won't crash the whole app and the plugin can be reloaded. I cannot find good documentation. I know Firefox implements it (crashing flash plugin does not affect whole FF thing and can be reloaded) Thanks!

like image 967
Stefano Mtangoo Avatar asked Mar 10 '26 17:03

Stefano Mtangoo


1 Answers

The only way you can have a truly sandboxed architecture wherein a plug-in cannot directly crash the parent application's process or corrupt its memory is by placing it into a separate OS process, with a separate memory space. When doing this, you will need to rely on interprocess communication facilities of the OS (pipes, sockets, remote procedure calls, memory mapped files, shared memory, synchronization objects, etc.) to interact with the plug-in.

like image 88
vercellop Avatar answered Mar 15 '26 22:03

vercellop



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!