1 /*
   2  * security policy used by the test process
   3  */
   4 
   5 grant codeBase "file:${java.home}/lib/ext/*" {
   6     permission java.security.AllPermission;
   7 };
   8 
   9 grant {
  10     // permissions needed to move classes into separate codebase directories
  11     permission java.io.FilePermission
  12         "${test.classes}${/}-", "read,write,delete";
  13     permission java.io.FilePermission
  14         ".${/}-", "read,write,delete";
  15 
  16     // used by TestLibrary to determine test environment
  17     permission java.util.PropertyPermission "test.*", "read";
  18     permission java.util.PropertyPermission "user.dir", "read";
  19     permission java.util.PropertyPermission "java.home", "read";
  20 
  21     // needed because RMIClassLoader.getClassLoader now requires it
  22     permission java.lang.RuntimePermission "getClassLoader";
  23 };