is noexec totally secure !!

Guys:

Recently I have found that the noexec,nosuid can not really protect /tmp. As perl scripts can be executed despite that.

I have created a perl script test.pl and put it in /tmp.
Code:
#!/usr/bin/perl

 print ("Hello World\n");
Now if I chmod it to execute it and run it as ./test.pl it is not running. But if I use perl test.pl , it is getting executed in shell.

How can I stop this!! Am I missing something ?

 

 

 

 

Top