The easiest way is probably to run julia in a chroot jail: 
http://docs.oracle.com/cd/E37670_01/E36387/html/ol_cj_sec.html

Note that that method is only to prevent unintentional mistakes from 
harming your system, not to defend against a determined hacker. For that, 
you'd need to look at more serious stuff like FreeBSD jails. Use of 
virtualization is heavily recommended.

On Sunday, June 22, 2014 6:43:19 AM UTC+12, Aerlinger wrote:
>
> So I'm looking to produce a publicly available Julia REPL that runs on a 
> server. Obviously, this is something that needs to be sandboxed and doesn't 
> expose any direct control over the OS environment. It seems like the way to 
> do this would be to override or wrap any functions in stdlib that provide 
> access to the filesystem, running processes, etc. Of course, this could 
> potentially be tedious and error prone. Is there an easier way to do this? 
> As far as I know julia doesn't have a "safe mode" or something similar.
>

Reply via email to