NAME
App::EvalServer::Child - Evaluate code in a safe child process
SYNOPSIS
# fork, etc
use App::EvalServer::Child;
App::EvalServer::Child::run(
$tempdir, $pipe_name, $jail, $user, $limit, $lang, $code, $unsafe,
);
DESCRIPTION
This module takes various safety precautions, then executes the code you provided.
FUNCTIONS
run
Runs the code. Takes the following arguments: a temporary directory, a pipe name, a jail path, a username, a process limit (in megabytes), a language suffix (e.g. 'Perl' for App::EvalServer::Language::Perl
), the code, and an unsafe flag. If the unsafe flag is on, run
will not take safety precautions (change user, chroot, set resource limits) which require root access.
AUTHOR
Hinrik Örn Sigurðsson, hinrik.sig@gmail.com
LICENSE AND COPYRIGHT
Copyright 2010 Hinrik Örn Sigurðsson
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.