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   // test explicitly acccesses sun.rmi.server.ActivatableRef
  11   permission java.lang.RuntimePermission "accessClassInPackage.sun.rmi.server";
  12 
  13   // ref to make sure that internal ref is a UnicastRef
  14   permission java.lang.RuntimePermission "accessDeclaredMembers";
  15   permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
  16 
  17   // standard test activation permissions
  18   permission java.io.FilePermission "..${/}..${/}test.props", "read";
  19 
  20   // test needs to cleanup rmid's log.
  21   permission java.io.FilePermission ".${/}log", "read,write,delete";
  22   permission java.io.FilePermission ".${/}log${/}-", "read,write,delete";
  23 
  24   // test needs to use java to exec an rmid
  25   permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
  26 
  27   // test rmid uses these properties to propagate security values to rmid
  28   permission java.util.PropertyPermission "java.rmi.server.useDynamicProxies", "read";
  29   permission java.util.PropertyPermission "java.security.policy", "read";
  30   permission java.util.PropertyPermission "java.security.manager", "read";
  31 
  32   // used by TestLibrary to determine test environment
  33   permission java.util.PropertyPermission "test.*", "read";
  34   permission java.util.PropertyPermission "user.dir", "read";
  35   permission java.util.PropertyPermission "java.home", "read";
  36   permission java.util.PropertyPermission "java.rmi.activation.port", "write";
  37 
  38   // Needed to create an activation group
  39   permission java.lang.RuntimePermission "setFactory";
  40 
  41   // allow exporting of remote objects on an arbitrary port.
  42   permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  43 
  44   permission java.lang.RuntimePermission "getClassLoader";
  45 };