Last active
December 20, 2016 14:39
-
-
Save frankwong15/24b36c82be497fbd8b7d61598efcb16e to your computer and use it in GitHub Desktop.
SystemCallError on FileUtils.mkdir_p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JAVA_OPTS="-Djava.security.manager -Djava.security.policy=test.policy" VERIFY_JRUBY=true jruby -e "require 'fileutils'; FileUtils.mkdir_p '/tmp/hello/world'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grant { | |
permission java.util.PropertyPermission "*", "read,write"; | |
permission java.lang.RuntimePermission "*"; | |
permission java.lang.reflect.ReflectPermission "*"; | |
// permission java.io.FilePermission "<<ALL FILES>>", "read, execute"; | |
permission java.io.FilePermission ".jrubyrc", "read, execute"; | |
permission java.io.FilePermission "${user.home}/.jrubyrc", "read, execute"; | |
permission java.io.FilePermission "${user.home}/.rvm/rubies/jruby-9.1.6.0", "read, execute"; | |
permission java.io.FilePermission "${user.home}/.rvm/rubies/jruby-9.1.6.0/-", "read, execute"; | |
permission java.io.FilePermission "/tmp", "read, write, execute"; | |
permission java.io.FilePermission "/tmp/-", "read, write, execute"; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment