2007-12-01 00:00:00 +00:00
|
|
|
/*
|
|
|
|
* security policy used by the test process
|
|
|
|
*/
|
|
|
|
|
|
|
|
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";
|
2012-11-02 16:50:23 -07:00
|
|
|
permission java.lang.RuntimePermission "getClassLoader";
|
2007-12-01 00:00:00 +00:00
|
|
|
permission java.lang.RuntimePermission "setContextClassLoader";
|
|
|
|
|
2013-04-17 12:04:15 -07:00
|
|
|
permission java.lang.reflect.ReflectPermission "newProxyInPackage.";
|
|
|
|
permission java.lang.reflect.ReflectPermission "newProxyInPackage.java.util.zip";
|
|
|
|
|
2007-12-01 00:00:00 +00:00
|
|
|
// used by TestLibrary to determine test environment
|
2014-03-06 14:26:26 -08:00
|
|
|
permission java.util.PropertyPermission "test.*", "read";
|
2007-12-01 00:00:00 +00:00
|
|
|
permission java.util.PropertyPermission "user.dir", "read";
|
|
|
|
permission java.util.PropertyPermission "java.home", "read";
|
|
|
|
};
|