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 {
|
|
|
|
// the test uses a class in the package sun.rmi.server
|
2012-07-17 11:01:44 -07:00
|
|
|
permission java.lang.RuntimePermission "accessClassInPackage.sun.rmi.registry";
|
2007-12-01 00:00:00 +00:00
|
|
|
permission java.lang.RuntimePermission "accessClassInPackage.sun.rmi.server";
|
|
|
|
permission java.lang.RuntimePermission "accessClassInPackage.sun.rmi.transport";
|
2012-07-17 11:01:44 -07:00
|
|
|
permission java.lang.RuntimePermission "accessClassInPackage.sun.rmi.transport.proxy";
|
|
|
|
permission java.lang.RuntimePermission "accessClassInPackage.sun.rmi.transport.tcp";
|
2007-12-01 00:00:00 +00:00
|
|
|
permission java.util.PropertyPermission "package.restrict.access.sun", "read";
|
|
|
|
permission java.util.PropertyPermission "package.restrict.access.sun.rmi", "read";
|
|
|
|
|
|
|
|
// 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";
|
|
|
|
|
|
|
|
permission java.io.FilePermission ".", "read,write,delete";
|
|
|
|
permission java.io.FilePermission ".${/}-", "read,write,delete";
|
|
|
|
};
|