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

Print this page
rev 9344 : 8036095: RMI tests using testlibrary.RMID and testlibrary.JavaVM do not pass through vmoptions
Reviewed-by: XXX
   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
  13         "${test.src}${/}-", "read";
  14     permission java.io.FilePermission
  15         "${test.classes}${/}-", "read,write,delete";
  16     permission java.io.FilePermission
  17         ".${/}-", "read,write,delete";
  18 
  19     // used by TestLibrary to determine test environment
  20     permission java.util.PropertyPermission "test.classes", "read";
  21     permission java.util.PropertyPermission "test.src", "read";
  22     permission java.util.PropertyPermission "user.dir", "read";
  23     permission java.util.PropertyPermission "java.home", "read";
  24 
  25     permission java.util.PropertyPermission
  26         "java.rmi.server.RMIClassLoaderSpi", "read,write";
  27 };
   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
  13         "${test.src}${/}-", "read";
  14     permission java.io.FilePermission
  15         "${test.classes}${/}-", "read,write,delete";
  16     permission java.io.FilePermission
  17         ".${/}-", "read,write,delete";
  18 
  19     // used by TestLibrary to determine test environment
  20     permission java.util.PropertyPermission "test.*", "read";

  21     permission java.util.PropertyPermission "user.dir", "read";
  22     permission java.util.PropertyPermission "java.home", "read";
  23 
  24     permission java.util.PropertyPermission
  25         "java.rmi.server.RMIClassLoaderSpi", "read,write";
  26 };