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

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


  15   permission java.io.FilePermission ".${/}codebase1", "read,write,delete";
  16   permission java.io.FilePermission ".${/}codebase1${/}-", "read,write";
  17   permission java.io.FilePermission ".${/}codebase2", "read,write,delete";
  18   permission java.io.FilePermission ".${/}codebase2${/}-", "read,write,delete";
  19 
  20   // standard activation permissions
  21   permission java.io.FilePermission "..${/}..${/}test.props", "read";
  22 
  23   // test needs to cleanup rmid's log.
  24   permission java.io.FilePermission ".${/}log", "read,write,delete";
  25   permission java.io.FilePermission ".${/}log${/}-", "read,write,delete";
  26 
  27   // test needs to use java to exec an rmid
  28   permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
  29 
  30   // test rmid uses these properties to propagate security values to rmid
  31   permission java.util.PropertyPermission "java.security.policy", "read";
  32   permission java.util.PropertyPermission "java.security.manager", "read";
  33 
  34   // used by TestLibrary to determine test environment
  35   permission java.util.PropertyPermission "test.classes", "read";
  36   permission java.util.PropertyPermission "test.src", "read";
  37   permission java.util.PropertyPermission "user.dir", "read";
  38   permission java.util.PropertyPermission "java.home", "read";
  39   permission java.util.PropertyPermission "java.rmi.activation.port", "write";
  40 
  41   // allow exporting of remote objects on an arbitrary port.
  42   permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  43 };


  15   permission java.io.FilePermission ".${/}codebase1", "read,write,delete";
  16   permission java.io.FilePermission ".${/}codebase1${/}-", "read,write";
  17   permission java.io.FilePermission ".${/}codebase2", "read,write,delete";
  18   permission java.io.FilePermission ".${/}codebase2${/}-", "read,write,delete";
  19 
  20   // standard activation permissions
  21   permission java.io.FilePermission "..${/}..${/}test.props", "read";
  22 
  23   // test needs to cleanup rmid's log.
  24   permission java.io.FilePermission ".${/}log", "read,write,delete";
  25   permission java.io.FilePermission ".${/}log${/}-", "read,write,delete";
  26 
  27   // test needs to use java to exec an rmid
  28   permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
  29 
  30   // test rmid uses these properties to propagate security values to rmid
  31   permission java.util.PropertyPermission "java.security.policy", "read";
  32   permission java.util.PropertyPermission "java.security.manager", "read";
  33 
  34   // used by TestLibrary to determine test environment
  35   permission java.util.PropertyPermission "test.*", "read";

  36   permission java.util.PropertyPermission "user.dir", "read";
  37   permission java.util.PropertyPermission "java.home", "read";
  38   permission java.util.PropertyPermission "java.rmi.activation.port", "write";
  39 
  40   // allow exporting of remote objects on an arbitrary port.
  41   permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  42 };