2007-12-01 00:00:00 +00:00
|
|
|
/*
|
|
|
|
* security policy used by the test process
|
|
|
|
*/
|
|
|
|
|
|
|
|
grant codeBase "file:${java.home}/lib/ext/*" {
|
|
|
|
permission java.security.AllPermission;
|
|
|
|
};
|
|
|
|
|
|
|
|
grant {
|
2013-02-27 14:17:05 -08:00
|
|
|
permission java.util.PropertyPermission
|
|
|
|
"java.rmi.server.codebase", "read,write";
|
2007-12-01 00:00:00 +00:00
|
|
|
|
|
|
|
// 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";
|
|
|
|
|
|
|
|
// 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";
|
|
|
|
|
|
|
|
// allow exporting of remote objects on an arbitrary port
|
|
|
|
permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
|
|
|
|
};
|