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   // used by TestLibrary to determine extra commandline properties
  11   permission java.io.FilePermission "..${/}..${/}test.props", "read";
  12 
  13   // test needs to use java to exec an EchoImpl object
  14   permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
  15 
  16   // used by TestLibrary to determine test environment 
  17   permission java.util.PropertyPermission "test.*", "read";
  18   permission java.util.PropertyPermission "user.dir", "read";
  19   permission java.util.PropertyPermission "java.home", "read";
  20 
  21   permission java.util.PropertyPermission "rmi.registry.port", "read";
  22   permission java.util.PropertyPermission "java.security.policy", "read";
  23   permission java.util.PropertyPermission "java.security.manager", "read";
  24 
  25   // test needs to export rmid and communicate with objects on arbitrary ports
  26   permission java.net.SocketPermission "*:1024-", "connect,accept";
  27 };