jdk/test/java/rmi/activation/CommandEnvironment/security.policy
changeset 2 90ce3da70b43
child 13256 5886d7607acd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jdk/test/java/rmi/activation/CommandEnvironment/security.policy	Sat Dec 01 00:00:00 2007 +0000
@@ -0,0 +1,36 @@
+/*
+ * security policy used by the test process
+ */
+
+grant codeBase "file:${java.home}/lib/ext/*" {
+    permission java.security.AllPermission;
+};
+
+grant {
+  // standard test activation permissions
+  permission java.io.FilePermission "..${/}..${/}test.props", "read";
+
+  // test needs to cleanup rmid's log.
+  permission java.io.FilePermission ".${/}log", "read,write,delete";
+  permission java.io.FilePermission ".${/}log${/}-", "read,write,delete";
+
+  // test needs to use java to exec an rmid
+  permission java.io.FilePermission "${java.home}${/}bin${/}java", "execute";
+
+  // test uses these permissions to propagate security values to rmid
+  permission java.util.PropertyPermission "java.security.policy", "read";
+  permission java.util.PropertyPermission "java.security.manager", "read";
+  permission java.util.PropertyPermission "java.compiler", "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";
+
+  // required for test to create an ActivationGroup
+  permission java.lang.RuntimePermission "setFactory";
+
+  // test needs to export rmid and communicate with objects on arbitrary ports
+  permission java.net.SocketPermission "*:1024-", "connect,accept,listen";
+};