view test/java/rmi/registry/classPathCodebase/security.policy @ 13011:bd6ca4cbfa4f

8139859: TestRSA.java: 'message larger than modulus' using SunRsaSign KeyFactory Reviewed-by: xuelei
author ascarpino
date Thu, 29 Oct 2015 09:09:07 -0700
parents 627deed79b59
children
line wrap: on
line source
/*
 * security policy used by the test process
 */

grant {
  // need to move some classes out of the test's classpath; specific to this test
  permission java.io.FilePermission "${test.classes}", "read,write,delete";
  permission java.io.FilePermission "${test.classes}${/}-", "read,write,delete";

  permission java.io.FilePermission ".", "read,write,delete";
  permission java.io.FilePermission ".${/}-", "read,write,delete";

  // used by TestLibrary to determine test environment 
  permission java.util.PropertyPermission "test.*", "read";
  permission java.util.PropertyPermission "user.dir", "read";
  permission java.util.PropertyPermission "java.home", "read";

  // test needs to use java to exec an rmiregistry
  permission java.io.FilePermission "${java.home}${/}bin${/}-", "execute";

  // test needs to communicate with this its registry
  permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
};