[MacRuby] #878: Can't catch an exception of Sandbox.

MacRuby ruby-noreply at macosforge.org
Fri Aug 27 19:13:03 PDT 2010


#878: Can't catch an exception of Sandbox.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  minor                 |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 Test Script:
 {{{
 #!ruby
 $ cat t.rb
 Sandbox.no_writes.apply!

 begin
   Sandbox.no_network.apply!
 rescue => e
   p e
 end

 p :ok
 }}}

 Result:
 {{{
 $ DYLD_LIBRARY_PATH=. ./macruby -I./lib t.rb
 /Users/watson/src/MacRuby/t.rb:4:in `<main>': Couldn't apply sandbox:
 `Operation not permitted` (SecurityError)
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/878>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list