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