test/java/rmi/activation/Activatable/restartCrashedService/security.policy

Print this page
rev 9344 : 8036095: RMI tests using testlibrary.RMID and testlibrary.JavaVM do not pass through vmoptions
Reviewed-by: XXX


   5 grant codeBase "file:${java.home}/lib/ext/*" {
   6     permission java.security.AllPermission;
   7 };
   8 
   9 grant {
  10   // standard test activation permissions
  11   permission java.io.FilePermission "..${/}..${/}test.props", "read";
  12 
  13   // test needs to cleanup rmid's log.
  14   permission java.io.FilePermission ".${/}log", "read,write,delete";
  15   permission java.io.FilePermission ".${/}log${/}-", "read,write,delete";
  16 
  17   // test needs to use java to exec an rmid
  18   permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
  19 
  20   // test rmid uses these properties to propagate security values to rmid
  21   permission java.util.PropertyPermission "java.security.policy", "read";
  22   permission java.util.PropertyPermission "java.security.manager", "read";
  23 
  24   // used by TestLibrary to determine test environment
  25   permission java.util.PropertyPermission "test.classes", "read";
  26   permission java.util.PropertyPermission "test.src", "read";
  27   permission java.util.PropertyPermission "user.dir", "read";
  28   permission java.util.PropertyPermission "java.home", "read";
  29   permission java.util.PropertyPermission "java.rmi.activation.port", "write";
  30 
  31   // Needed to create an activation group
  32   permission java.lang.RuntimePermission "setFactory";
  33 
  34   // test needs to export rmid and communicate with objects on arbitrary ports
  35   permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  36 };


   5 grant codeBase "file:${java.home}/lib/ext/*" {
   6     permission java.security.AllPermission;
   7 };
   8 
   9 grant {
  10   // standard test activation permissions
  11   permission java.io.FilePermission "..${/}..${/}test.props", "read";
  12 
  13   // test needs to cleanup rmid's log.
  14   permission java.io.FilePermission ".${/}log", "read,write,delete";
  15   permission java.io.FilePermission ".${/}log${/}-", "read,write,delete";
  16 
  17   // test needs to use java to exec an rmid
  18   permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
  19 
  20   // test rmid uses these properties to propagate security values to rmid
  21   permission java.util.PropertyPermission "java.security.policy", "read";
  22   permission java.util.PropertyPermission "java.security.manager", "read";
  23 
  24   // used by TestLibrary to determine test environment
  25   permission java.util.PropertyPermission "test.*", "read";

  26   permission java.util.PropertyPermission "user.dir", "read";
  27   permission java.util.PropertyPermission "java.home", "read";
  28   permission java.util.PropertyPermission "java.rmi.activation.port", "write";
  29 
  30   // Needed to create an activation group
  31   permission java.lang.RuntimePermission "setFactory";
  32 
  33   // test needs to export rmid and communicate with objects on arbitrary ports
  34   permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  35 };