matze77 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks!
I wonder if you know of any good sandbox environment (would be fine it would be available for Debian Lenny but ok if available for Linux, or even Windows).
(Was thinking of as an alternative to do it in a chroot environment).
Eplanation: I think of it as follows: Sandbox = Environment which has limited access to the "filesystem/system ressources" so that a very harmful (programming) failure could not kill the complete OS ...
Would be nice if you shared your knowledge about something useful.

btw: I got a root server which i could use to install the "sandbox" on and access it from anywhere e.g. via. ssh.
Seen something that uses Java Runtime Environment at a online school
Update: I found a thread already but it is from 2001:
Perl sandbox ...
Update: Virtualization is no real alternative for me since i got only 1 GB RAM on the server ...

Thanks in Advance
MH
  • Comment on Perl or programming "Sandbox" any suggestions?

Replies are listed 'Best First'.
Re: Perl or programming "Sandbox" any suggestions?
by puudeli (Pilgrim) on Jan 26, 2009 at 12:26 UTC

      That would be an alternative, but My Fault not to mention: since i got only 1GB RAM on my root server it would be a waste of RAM i think to emulate a complete linux sys. I update the thread ...

      Thanks MH
Re: Perl or programming "Sandbox" any suggestions?
by puudeli (Pilgrim) on Jan 26, 2009 at 13:08 UTC

    Any specific reason why a normal user is not enough? Create a new user without sudo permissions and set process limits in the kernel to lower levels so that processes can not consume all resources. Then install local Perl for the user. I find it quite difficult to harm an Unix-like OS without deliberate attempt.

    --
    seek $her, $from, $everywhere if exists $true{love};
Re: Perl or programming "Sandbox" any suggestions?
by salva (Canon) on Jan 26, 2009 at 13:05 UTC
    Check Linux-VServer and OpenVZ.

    Patched kernels for both projects are available in Debian... well, at least in Debian unstable!

Re: Perl or programming "Sandbox" any suggestions?
by rovf (Priest) on Jan 26, 2009 at 13:10 UTC
    Sandbox = Environment which has limited access to the "filesystem/system ressources"

    Running from a restricted shell is not limiting enough?

    -- 
    Ronald Fischer <ynnor@mm.st>