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   // property specifically accessed by this test.
  14   permission java.util.PropertyPermission "user.name", "read";
  15 
  16   // test needs to use java to exec an EchoImpl object
  17   permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
  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 "rmi.registry.port", "read";  
  26 
  27   permission java.util.PropertyPermission "java.security.policy", "read";
  28   permission java.util.PropertyPermission "java.security.manager", "read";
  29 
  30   // test needs to export rmid and communicate with objects on arbitrary ports
  31   permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  32 };