Tom;
My roommate did this project a few years ago (actually, it was
collaborative ChucKing), but I don't know if he handled the security
issues. I'll ask. However, since that time more unsafe APIs have been
added, so even if they did, their patch might not be too useful.
I think it would take some work to find all the places where ChucK
performs operations you wouldn't want to do in a sandbox. There's no
--sandbox option, though the undocumented --standalone gets you
started. It turns off network listening for on-the-fly VM commands.
AFAIK it's only referenced in the VERSIONS file and chuck_main.cpp.
And Stephen's right that you'd definitely need a watchdog outside of
ChucK since a shred can halt virtual time indefinitely with an
infinite loop. If you're spawning a ChucK per job that's simple, but a
long-running ChucK would be complicated. There's --watchdog (another
undocumented flag), but it's not clear how/if that works.