test/sun/rmi/server/MarshalOutputStream/marshalForeignStub/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 /*
   2  * security policy used by MarshalForeignStub test
   3  */
   4 
   5 grant codeBase "file:${java.home}/lib/ext/*" {
   6     permission java.security.AllPermission;
   7 };
   8 
   9 grant {
  10 
  11     // used by TestLibrary to determine test environment
  12     permission java.util.PropertyPermission "test.classes", "read";
  13     permission java.util.PropertyPermission "test.src", "read";
  14     permission java.util.PropertyPermission "user.dir", "read";
  15     permission java.util.PropertyPermission "java.home", "read";
  16 
  17     // allow exporting of remote objects on an arbitrary port
  18     permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  19 };
   1 /*
   2  * security policy used by MarshalForeignStub test
   3  */
   4 
   5 grant codeBase "file:${java.home}/lib/ext/*" {
   6     permission java.security.AllPermission;
   7 };
   8 
   9 grant {
  10 
  11     // used by TestLibrary to determine test environment
  12     permission java.util.PropertyPermission "test.*", "read";

  13     permission java.util.PropertyPermission "user.dir", "read";
  14     permission java.util.PropertyPermission "java.home", "read";
  15 
  16     // allow exporting of remote objects on an arbitrary port
  17     permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
  18 };