How does Google App Engine sandbox work?

前端 未结 3 1795
情歌与酒
情歌与酒 2021-02-13 00:50

How does Google App Engine sandbox work?

What would I have to do to create my own such sandbox (to safely allow my clients to run their apps on my engine without giving

3条回答
  •  迷失自我
    2021-02-13 01:15

    In the Java case, I think it's mostly done by restricting the available libraries. Since Java doesn't have pointer concept, and you can't upload natively compiled code (only JVM bytecode), you can't break out of the sandbox. Add some tight process scheduling, and you're done!

    I guess The hardest part is to pick the libraries, to make it useful while staying safe.

    In the Python case, they had to modify the VM itself, because it wasn't designed with safety in mind. Fortunately, they have Guido himself to do it.

提交回复
热议问题