# "Security Managers" in Ruby?

**URL:** <https://www.ruby-forum.com/t/security-managers-in-ruby/130852>\
**Category:** Ruby\
**Created:** [March 3, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/security-managers-in-ruby/130852 "2008-03-03T22:59:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Pritchard-Will](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ad7895/32.png) [@John\_Pritchard-Will](https://www.ruby-forum.com/u/John_Pritchard-Will)\
**Post date:** [March 3, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/security-managers-in-ruby/130852/1 "2008-03-03T22:59:34Z")

</div>

I’m a newbie: I’m inevitably comparing Ruby with Java (whether this is  
healthy or wise thing to do I don’t know…) - but I have not seen any  
documentation on whether or not Ruby (as in the interpreter /  
platform, not the language itself) has the concept of a ‘security  
manager’ - something to restrict untrusted code.

For instance, (without certifications) Java Applets are not allowed to  
do certain stuff - like access local filestore, or open up n/w  
connections (apart from back to source) - is there an equivalent  
concept in Ruby ?

Thanks

John

---

<div class="post-metadata">

**Author:** ![John\_Pritchard-Will](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ad7895/32.png) [@John\_Pritchard-Will](https://www.ruby-forum.com/u/John_Pritchard-Will)\
**Post date:** [March 3, 2008, 11:03pm UTC](https://www.ruby-forum.com/t/security-managers-in-ruby/130852/2 "2008-03-03T23:03:42Z")

</div>

On Mon, Mar 3, 2008 at 4:58 PM, John Pritchard-Williams  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> For instance, (without certifications) Java Applets are not allowed to  
> do certain stuff - like access local filestore, or open up n/w  
> connections (apart from back to source) - is there an equivalent  
> concept in Ruby ?

It’s the $SAFE variable.
