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

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


   4 
   5 grant codeBase "file:${java.home}/lib/ext/*" {
   6     permission java.security.AllPermission;
   7 };
   8 
   9 grant {
  10 
  11     // specific property access needed by this test
  12     permission java.util.PropertyPermission
  13         "java.rmi.server.codebase", "read,write";
  14     permission java.util.PropertyPermission
  15         "java.rmi.server.useCodebaseOnly", "read,write";
  16 
  17     // permissions needed to move classes into separate codebase directories
  18     permission java.io.FilePermission
  19         "${test.classes}${/}-", "read,write,delete";
  20     permission java.io.FilePermission
  21         ".${/}-", "read,write,delete";
  22 
  23     // used by TestLibrary to determine test environment
  24     permission java.util.PropertyPermission "test.classes", "read";
  25     permission java.util.PropertyPermission "test.src", "read";
  26     permission java.util.PropertyPermission "user.dir", "read";
  27     permission java.util.PropertyPermission "java.home", "read";
  28 
  29     // allow exporting of remote objects on an arbitrary port
  30     permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  31 };


   4 
   5 grant codeBase "file:${java.home}/lib/ext/*" {
   6     permission java.security.AllPermission;
   7 };
   8 
   9 grant {
  10 
  11     // specific property access needed by this test
  12     permission java.util.PropertyPermission
  13         "java.rmi.server.codebase", "read,write";
  14     permission java.util.PropertyPermission
  15         "java.rmi.server.useCodebaseOnly", "read,write";
  16 
  17     // permissions needed to move classes into separate codebase directories
  18     permission java.io.FilePermission
  19         "${test.classes}${/}-", "read,write,delete";
  20     permission java.io.FilePermission
  21         ".${/}-", "read,write,delete";
  22 
  23     // used by TestLibrary to determine test environment
  24     permission java.util.PropertyPermission "test.*", "read";

  25     permission java.util.PropertyPermission "user.dir", "read";
  26     permission java.util.PropertyPermission "java.home", "read";
  27 
  28     // allow exporting of remote objects on an arbitrary port
  29     permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  30 };