I want to use Rhino as a sandbox to run user supplied scripts on a server. I want to do that from PHP, which doesn't have Java bindings any more, so I have to use the command line interface (Rhino shell).
Unfortunately the Rhino shell adds some intrinsic functions to the environment that ruin the sandbox character, like file access and runCommand()
which allows runnning arbitrary commands on the system.
Is there a way to disable them?