in reply to Re: perl pre-execution hook
in thread perl pre-execution hook
s/ect/etc/g. *typo*.
No-execute wont make a difference, since what is executed is /usr/bin/perl which then reads a file (script) from /tmp/.
The wrapper script idea would certainly work. But its really simple to circumvent. I know theres no fool-proof way, but i was kinda hoping for something that would be more, errhh... "Hardcoded".. The problem with the wrapper script is, that to be able to execute a SCRIPT, you need read access to it. Execute-only is not enough. So basically you can just cat the script and see where the real perl is located.
Still, its the best option so far.
Now the PERL5OPT might be interresting.. Especially if there is some way to make the env-var read only to PHP.. Ill look into that.
Isnt there some sort of "autoloading" directory, where i can drop a file, a module, a .so file or somthing and have perl automagically load this on startup?
Ive already tried making a patch to perl that simply rejects running scripts from /tmp/, but its hacky to have to recompile perl on every server.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: perl pre-execution hook
by ikegami (Patriarch) on Jan 04, 2011 at 20:16 UTC | |
by logix (Initiate) on Jan 04, 2011 at 20:35 UTC | |
by ikegami (Patriarch) on Jan 04, 2011 at 21:39 UTC | |
by Anonyrnous Monk (Hermit) on Jan 04, 2011 at 20:24 UTC | |
by ikegami (Patriarch) on Jan 04, 2011 at 20:27 UTC | |
by Anonyrnous Monk (Hermit) on Jan 04, 2011 at 20:39 UTC | |
by ikegami (Patriarch) on Jan 04, 2011 at 21:25 UTC | |
| |
by logix (Initiate) on Jan 04, 2011 at 20:51 UTC |