Noob-ish question: So, what does the exception class SecurityError
actually cover? I’ve been unable to find (without looking at the Ruby
source code) a quick and dirty explanation of what kinds of security
issues are caught by SecurityError. I’ve got the Pragmatic book and
the Nutshell book, but neither go into any detail about what the class
catches.
Is there possibly an online resource that I haven’t found that
explains this?
Try to increase Ruby safe level and do something with external resources,
for example:
$SAFE = 4
system(“ls”)
You’ll get:
test.rb:3:in `system’: Insecure operation - system (SecurityError)
from test.rb:2
Gennady.
···
----- Original Message -----
From: “higle” higle@hotmail.com
Newsgroups: comp.lang.ruby
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Friday, April 25, 2003 7:40 AM
Subject: What does SecurityError actually cover?
Noob-ish question: So, what does the exception class SecurityError
actually cover? I’ve been unable to find (without looking at the Ruby
source code) a quick and dirty explanation of what kinds of security
issues are caught by SecurityError. I’ve got the Pragmatic book and
the Nutshell book, but neither go into any detail about what the class
catches.
Is there possibly an online resource that I haven’t found that
explains this?