Name

Level 2

Synopsis

In this level, potentially dangerous operations on processes and files are forbidden, in addition to all restrictions in level 1. The following operations are prohibited:

Dir::chdir
Dir::chroot
Dir::mkdir
Dir::rmdir
File::chown
File::chmod
File::umask
File::truncate
File#lstat
File#chmod
File#chown
File#truncate
File#flock
IO#ioctl
IO#fctrl
Methods defined in the FileTest module
Process::fork
Process::setpgid
Process::setsid
Process::setpriority
Process::egid=
Process::kill
load from a world-writable directory
syscall
exit!
trap

Get Ruby in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.