1 grant codeBase "file:${java.home}/lib/ext/*" {
   2     permission java.security.AllPermission;
   3 };
   4 
   5 grant {
   6   // standard test activation permissions
   7   permission java.io.FilePermission "..${/}..${/}test.props", "read";
   8 
   9   // test needs to cleanup rmid's log.
  10   permission java.io.FilePermission ".${/}log", "read,write,delete";
  11   permission java.io.FilePermission ".${/}log${/}-", "read,write,delete";
  12 
  13   // test needs to use java to exec an rmid
  14   permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
  15   permission java.util.PropertyPermission "java.security.policy", "read";
  16   permission java.util.PropertyPermission "java.security.manager", "read";
  17 
  18   // used by TestLibrary to determine test environment
  19   permission java.util.PropertyPermission "test.*", "read";
  20   permission java.util.PropertyPermission "user.dir", "read";
  21   permission java.util.PropertyPermission "java.home", "read";
  22   permission java.util.PropertyPermission "java.rmi.activation.port", "write";
  23 
  24   // test needs to export rmid and communicate with objects on arbitrary ports
  25   permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  26 
  27 };