summaryrefslogtreecommitdiff
path: root/ext/Safe
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-07-20 16:53:16 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-07-20 16:53:16 +0000
commite866b74b8651a8d5e0458756533f958fc66fd305 (patch)
treee4aab1cd60d9682b4687e52800f658f1738106f3 /ext/Safe
parent1e82f5a677c5abc27ea5ffb3546e5db6b8a56b93 (diff)
downloadperl-e866b74b8651a8d5e0458756533f958fc66fd305.tar.gz
Remove :base_io from the set of default "safe" opcodes.
This fixes bug [perl #36213] "Possible flaw in Safe.pm/Opcode.pm that allows access to any file" but introduces a backward compatibility issue. p4raw-id: //depot/perl@25204
Diffstat (limited to 'ext/Safe')
-rwxr-xr-xext/Safe/t/safe2.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/Safe/t/safe2.t b/ext/Safe/t/safe2.t
index 3ea19eda4e..d0239d1bb7 100755
--- a/ext/Safe/t/safe2.t
+++ b/ext/Safe/t/safe2.t
@@ -39,6 +39,8 @@ $cpt = new Safe or die;
$cpt = new Safe "Root";
+$cpt->permit(qw(:base_io));
+
$cpt->reval(q{ system("echo not ok 1"); });
if ($@ =~ /^'?system'? trapped by operation mask/) {
print "ok 1\n";