tadman has asked for the wisdom of the Perl Monks concerning the following question:
Is it possible to turn Perl into a "multi-user" language
using the Safe module? The idea is to allow user code
to be loaded and executed in the context of a larger
script, but that access would be strictly controlled
and that the range of operators available would be limited
to limit access. This would allow users to write quick
macros, math functions, and the like, without being able
to run system commands, create files, trash global variables, etc.
Safe understandably carries this disclaimer:
I understand that this might be fundamentally a Bad Idea, but stripping down Perl seems a lot easier than writing a Perl-like scripting language from the ground up.
Safe understandably carries this disclaimer:
Is this because Safe isn't really safe, or is this just an obligatory disclaimer? Is it theoretically secure, at least?WARNING The authors make no warranty, implied or otherwise, about the suitability of this software for safety or security purposes.
I understand that this might be fundamentally a Bad Idea, but stripping down Perl seems a lot easier than writing a Perl-like scripting language from the ground up.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How Safe is Safe::?
by sierrathedog04 (Hermit) on Feb 14, 2001 at 05:04 UTC | |
by MeowChow (Vicar) on Feb 14, 2001 at 05:29 UTC | |
by Lexicon (Chaplain) on Feb 14, 2001 at 06:05 UTC | |
by baku (Scribe) on Feb 14, 2001 at 20:11 UTC | |
by tilly (Archbishop) on Feb 14, 2001 at 06:17 UTC | |
Re: How Safe is Safe::?
by jepri (Parson) on Feb 14, 2001 at 13:02 UTC | |
by sierrathedog04 (Hermit) on Feb 14, 2001 at 19:25 UTC | |
Re: How Safe is Safe::?
by TheoPetersen (Priest) on Feb 14, 2001 at 06:47 UTC |
Back to
Seekers of Perl Wisdom