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

Print this page
rev 9344 : 8036095: RMI tests using testlibrary.RMID and testlibrary.JavaVM do not pass through vmoptions
Reviewed-by: XXX
   1 grant codeBase "file:${java.home}/lib/ext/*" {
   2     permission java.security.AllPermission;
   3 };
   4 
   5 grant {
   6   // standard 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 
  16   // test rmid uses these properties to propagate security values to rmid
  17   permission java.util.PropertyPermission "java.security.policy", "read";
  18   permission java.util.PropertyPermission "java.security.manager", "read";
  19 
  20   // used by TestLibrary to determine test environment
  21   permission java.util.PropertyPermission "test.classes", "read";
  22   permission java.util.PropertyPermission "test.src", "read";
  23   permission java.util.PropertyPermission "user.dir", "read";
  24   permission java.util.PropertyPermission "java.home", "read";
  25   permission java.util.PropertyPermission "java.rmi.activation.port", "write";
  26 
  27   // allow exporting of remote objects on an arbitrary port.
  28   permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  29 };
   1 grant codeBase "file:${java.home}/lib/ext/*" {
   2     permission java.security.AllPermission;
   3 };
   4 
   5 grant {
   6   // standard 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 
  16   // test rmid uses these properties to propagate security values to rmid
  17   permission java.util.PropertyPermission "java.security.policy", "read";
  18   permission java.util.PropertyPermission "java.security.manager", "read";
  19 
  20   // used by TestLibrary to determine test environment
  21   permission java.util.PropertyPermission "test.*", "read";

  22   permission java.util.PropertyPermission "user.dir", "read";
  23   permission java.util.PropertyPermission "java.home", "read";
  24   permission java.util.PropertyPermission "java.rmi.activation.port", "write";
  25 
  26   // allow exporting of remote objects on an arbitrary port.
  27   permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  28 };