in reply to Re: What restrictions are there on code execution when running perl in syntax check mode?
in thread What restrictions are there on code execution when running perl in syntax check mode?
You make a good point, but I don't think the safety problem is reducible to "If I don't think its safe...". Just scan the web for all the people who innocently rooted themselves because they had a typo in an rm command and a foolish OS distro that didn't no-op rm / by default.
While it is true that, by nature, Perl sometimes needs to be executed to be syntax checked, that does not necessarily preclude the use of sand-boxing techniques. For instance, a call that writes to files through a Perl library isn't (usually) needed to evaluate code further down the line. Couldn't the perl syntax checker have been/be designed to monitor certain system calls and no-op them unless a flag was explicitly set to do otherwise?
Best, beth
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What restrictions are there on code execution when running perl in syntax check mode?
by BrowserUk (Patriarch) on Feb 04, 2009 at 11:34 UTC | |
|
Re^3: What restrictions are there on code execution when running perl in syntax check mode?
by JavaFan (Canon) on Feb 04, 2009 at 12:32 UTC | |
|
Re^3: What restrictions are there on code execution when running perl in syntax check mode?
by gokuraku (Monk) on Feb 04, 2009 at 16:09 UTC | |
by ELISHEVA (Prior) on Feb 04, 2009 at 16:54 UTC |