Is there a way to limit the abilities of python scripts running under an embedded interpretor? Specifically I wish to prevent the scripts from doing things like the following:
- Importing python extension modules (ie .pyd modules), except those specifically allowed by the application.
- Manipulating processes in any way (ie starting new processes, or terminating the application).
- Any kind of networking.
- Manipulating the file system (eg creating, modifying and deleting files).