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   // property specifically accessed by this test
  11   permission java.util.PropertyPermission "user.name", "read";
  12 
  13   // standard test activation permissions
  14   permission java.io.FilePermission "..${/}..${/}test.props", "read";
  15 
  16   // test needs to cleanup rmid's log.
  17   permission java.io.FilePermission ".${/}log", "read,write,delete";
  18   permission java.io.FilePermission ".${/}log${/}-", "read,write,delete";
  19 
  20   // test needs to use java to exec an rmid
  21   permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
  22 
  23   // test uses these permissions to propagate security values to rmid
  24   permission java.util.PropertyPermission "java.security.policy", "read";
  25   permission java.util.PropertyPermission "java.security.manager", "read";
  26 
  27   // used by TestLibrary to determine test environment 
  28   permission java.util.PropertyPermission "test.*", "read";
  29   permission java.util.PropertyPermission "user.dir", "read";
  30   permission java.util.PropertyPermission "java.home", "read";
  31 
  32   permission java.util.PropertyPermission "rmi.registry.port", "read";
  33   permission java.util.PropertyPermission "java.rmi.activation.port", "write";
  34 
  35   // required for test to create an ActivationGroup
  36   permission java.lang.RuntimePermission "setFactory";
  37 
  38   // test needs to export rmid and communicate with objects on arbitrary ports
  39   permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  40 };