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

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

grant {

    // permissions needed to move classes into separate codebase directories
    permission java.io.FilePermission "${test.classes}${/}-", "read,write,delete";
    permission java.io.FilePermission ".${/}-", "read,write,delete";

    permission java.lang.RuntimePermission "createClassLoader";
16
    permission java.lang.RuntimePermission "getClassLoader";
D
duke 已提交
17 18
    permission java.lang.RuntimePermission "setContextClassLoader";

19 20 21
    permission java.lang.reflect.ReflectPermission "newProxyInPackage.";
    permission java.lang.reflect.ReflectPermission "newProxyInPackage.java.util.zip";

D
duke 已提交
22 23 24 25 26 27
    // 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";
};