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 
  11     // permissions needed to move classes into separate codebase directories
  12     permission java.io.FilePermission "${test.classes}${/}-", "read,write,delete";
  13     permission java.io.FilePermission ".${/}-", "read,write,delete";
  14 
  15     permission java.lang.RuntimePermission "createClassLoader";
  16     permission java.lang.RuntimePermission "getClassLoader";
  17     permission java.lang.RuntimePermission "setContextClassLoader";
  18 
  19     permission java.lang.reflect.ReflectPermission "newProxyInPackage.";
  20     permission java.lang.reflect.ReflectPermission "newProxyInPackage.java.util.zip";
  21 
  22     // used by TestLibrary to determine test environment
  23     permission java.util.PropertyPermission "test.*", "read";
  24     permission java.util.PropertyPermission "user.dir", "read";
  25     permission java.util.PropertyPermission "java.home", "read";
  26 };