security.policy 1.1 KB
Newer Older
D
duke 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
 * security policy used by the test process
 */

grant codeBase "file:${java.home}/lib/ext/*" {
    permission java.security.AllPermission;
};

grant {
  // used by TestLibrary to determine extra commandline properties
  permission java.io.FilePermission "..${/}..${/}test.props", "read";

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

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

D
dmocek 已提交
22
  permission java.util.PropertyPermission "rmi.registry.port", "read";
D
duke 已提交
23 24 25 26 27 28
  permission java.util.PropertyPermission "java.security.policy", "read";
  permission java.util.PropertyPermission "java.security.manager", "read";

  // test needs to export rmid and communicate with objects on arbitrary ports
  permission java.net.SocketPermission "*:1024-", "connect,accept";
};