test/java/rmi/server/RMIClassLoader/loadProxyClasses/security.policy

Print this page
rev 9344 : 8036095: RMI tests using testlibrary.RMID and testlibrary.JavaVM do not pass through vmoptions
Reviewed-by: XXX


   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.classes", "read";
  24     permission java.util.PropertyPermission "test.src", "read";
  25     permission java.util.PropertyPermission "user.dir", "read";
  26     permission java.util.PropertyPermission "java.home", "read";
  27 };


   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 };