he can almost certainly also run /usr/bin/perl /tmp/foo.
No, it completely depends on the bug being exploited.
You're approaching this from the point of view that the attacker can run arbitrary commands. If so, why are you ok with just protecting perl?
I'm assuming the OP isn't silly, so that means he's trying to defend against some specific attack.
In reply to Re^7: perl pre-execution hook
by ikegami
in thread perl pre-execution hook
by logix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |