db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r329876 [3/3] - in /db/derby/code/trunk/java/testing: README.htm org/apache/derbyTesting/functionTests/harness/RunTest.java org/apache/derbyTesting/functionTests/util/derby_tests.policy
Date Mon, 31 Oct 2005 18:40:32 GMT
Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunTest.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunTest.java?rev=329876&r1=329875&r2=329876&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/harness/RunTest.java
Mon Oct 31 10:40:29 2005
@@ -2075,12 +2075,10 @@
         jvm.setD(jvmProps);
         
         // set security properties
-        /*
         if (!runWithoutSecurityManager)
             jvm.setSecurityProps();
         else
         	System.out.println("-- SecurityManager not installed --");
-        */
             
         Vector v = jvm.getCommandLine();
         if ( ij.startsWith("ij") )

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy?rev=329876&r1=329875&r2=329876&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/derby_tests.policy
Mon Oct 31 10:40:29 2005
@@ -19,6 +19,9 @@
 grant codeBase "${csinfo.codejar}derby.jar" {
   permission java.util.PropertyPermission "derby.*", "read";
   
+  // for unit tests
+  permission java.util.PropertyPermission "db2j.unittest.*", "read";
+  
   permission java.lang.RuntimePermission "createClassLoader";
   
   permission java.io.FilePermission "${derby.system.home}${/}derby.properties", "read";
@@ -32,6 +35,11 @@
   permission java.io.FilePermission "${user.dir}${/}extin${/}*", "read";
   permission java.io.FilePermission "${user.dir}${/}extinout${/}*", "read, write";
   permission java.io.FilePermission "${user.dir}${/}extout${/}*", "write"; 
+  permission java.io.FilePermission "${user.dir}${/}extinout", "read,write";
+  
+  // unit tests set this property (called from derbyTesting.jar through
+  // code in derby.jar
+  permission java.util.PropertyPermission "db2j.unittest.*", "write";
 
   // BUG DERBY-622 derbynet/sysinfo.java
   permission java.io.FilePermission "${csinfo.codedir}${/}*", "read";



Mime
View raw message