summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgs@consttype.org>2010-03-18 23:43:51 +0100
committerRafael Garcia-Suarez <rgs@consttype.org>2010-03-18 23:43:51 +0100
commit18d7fc8581bb4210d9ffa89f034b1895f1df9ab6 (patch)
tree6838905db3b4d94931e74c7c4f9695a93ea0e5a3
parent25c32de1d6c1a948fb0fff96b2dc1f17a177723a (diff)
downloadperl-18d7fc8581bb4210d9ffa89f034b1895f1df9ab6.tar.gz
Don't encourage using Safe in perlsec
-rw-r--r--pod/perlsec.pod11
1 files changed, 8 insertions, 3 deletions
diff --git a/pod/perlsec.pod b/pod/perlsec.pod
index d11e3dcbbe..1c49453d53 100644
--- a/pod/perlsec.pod
+++ b/pod/perlsec.pod
@@ -346,10 +346,15 @@ programs launched on someone else's behalf, like CGI programs.
This is quite different, however, from not even trusting the writer of the
code not to try to do something evil. That's the kind of trust needed
when someone hands you a program you've never seen before and says, "Here,
-run this." For that kind of safety, check out the Safe module,
-included standard in the Perl distribution. This module allows the
+run this." For that kind of safety, you might want to check out the Safe
+module, included standard in the Perl distribution. This module allows the
programmer to set up special compartments in which all system operations
-are trapped and namespace access is carefully controlled.
+are trapped and namespace access is carefully controlled. Safe should
+not be considered bullet-proof, though: it will not prevent the foreign
+code to set up infinite loops, allocate gigabytes of memory, or even
+abusing perl bugs to make the host interpreter crash or behave in
+unpredictable ways. In any case it's better avoided completely if you're
+really concerned about security.
=head2 Security Bugs