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 "sun.rmi.transport.cleanInterval", "write";
  15   permission java.util.PropertyPermission "package.restrict.access.sun", "read";
  16   permission java.util.PropertyPermission "package.restrict.access.sun.rmi", "read";
  17 
  18   // test needs to use java to exec an EchoImpl object
  19   permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
  20 
  21   // used by TestLibrary to determine test environment 
  22   permission java.util.PropertyPermission "test.*", "read";
  23   permission java.util.PropertyPermission "user.dir", "read";
  24   permission java.util.PropertyPermission "java.home", "read";
  25 
  26   permission java.util.PropertyPermission "java.security.policy", "read";
  27   permission java.util.PropertyPermission "java.security.manager", "read";
  28 
  29   // test needs to export rmid and communicate with objects on arbitrary ports
  30   permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  31 };