db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r677960 - in /db/jdo/trunk/tck2: maven.xml src/conf/security.policy
Date Fri, 18 Jul 2008 16:17:54 GMT
Author: clr
Date: Fri Jul 18 09:17:52 2008
New Revision: 677960

URL: http://svn.apache.org/viewvc?rev=677960&view=rev
Log:
JDO-555 Add enhancement jars to security model

Modified:
    db/jdo/trunk/tck2/maven.xml
    db/jdo/trunk/tck2/src/conf/security.policy

Modified: db/jdo/trunk/tck2/maven.xml
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/maven.xml?rev=677960&r1=677959&r2=677960&view=diff
==============================================================================
--- db/jdo/trunk/tck2/maven.xml (original)
+++ db/jdo/trunk/tck2/maven.xml Fri Jul 18 09:17:52 2008
@@ -509,6 +509,10 @@
                          value="${jdo.tck.basedir}"/>
             <sysproperty key="jdo.tck.jdori.jarfile"
                          value="${datanucleus.jdori.jarfile}"/>
+            <sysproperty key="jdo.tck.jdori.rdbms.jarfile"
+                         value="${datanucleus.rdbms.jarfile}"/>
+            <sysproperty key="jdo.tck.jdori.enhancer.jarfile"
+                         value="${datanucleus.enhancer.jarfile}"/>
             <sysproperty key="jdo.tck.springcore.jarfile"
                          value="${springcore.jarfile}"/>
             <sysproperty key="jdo.tck.springbeans.jarfile"

Modified: db/jdo/trunk/tck2/src/conf/security.policy
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/conf/security.policy?rev=677960&r1=677959&r2=677960&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/conf/security.policy (original)
+++ db/jdo/trunk/tck2/src/conf/security.policy Fri Jul 18 09:17:52 2008
@@ -7,6 +7,7 @@
 grant codeBase "file://${jdo.tck.springbeans.jarfile}" {
     permission java.lang.RuntimePermission "accessDeclaredMembers";
     permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
+    permission java.lang.RuntimePermission "getClassLoader";
 };
 
 // Springcore code base
@@ -21,6 +22,7 @@
 // needed for Springbeans
     permission java.lang.RuntimePermission "accessDeclaredMembers";
     permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
+    permission java.lang.RuntimePermission "getClassLoader";
 };
 
 // TCK PC enhanced classes
@@ -41,17 +43,31 @@
     permission javax.jdo.spi.JDOPermission "setStateManager";
     permission java.lang.RuntimePermission "accessDeclaredMembers";
     permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
+    permission java.lang.RuntimePermission "getClassLoader";
+};
+
+// JDO RI enhancer base
+grant codeBase "file://${jdo.tck.jdori.enhancer.jarfile}" {
+    permission java.lang.RuntimePermission "accessDeclaredMembers";
+};
+
+// JDO RI store.rdbms code base
+grant codeBase "file://${jdo.tck.jdori.rdbms.jarfile}" {
+    permission java.lang.RuntimePermission "accessDeclaredMembers";
+    permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
+    permission java.lang.RuntimePermission "getClassLoader";
 };
 
 // All classes in the classpath
 grant {
 // c3p0 seems to require PropertyPermission of write (don't know why)
     permission java.util.PropertyPermission "*", "read, write";
-    permission java.io.FilePermission "${user.home}/.maven/repository/-", "read";
-    permission java.io.FilePermission "${jdo.tck.basedir}/target/-", "read, write";
+    permission java.io.FilePermission "${user.home}${/}.maven/repository${/}-", "read";
+    permission java.io.FilePermission "${jdo.tck.basedir}${/}target${/}-", "read, write";
 // bug in security? needed for Derby to create tck2/target/database/derby/../../logs
-    permission java.io.FilePermission "${jdo.tck.basedir}/-", "read, write, delete";
+    permission java.io.FilePermission "${jdo.tck.basedir}${/}-", "read, write, delete";
 // needed for JNDI FSContext
-    permission java.io.FilePermission "/", "read";
+    permission java.io.FilePermission "${/}", "read";
     permission java.lang.RuntimePermission "createClassLoader";
+    permission java.io.FilePermission "${user.dir}${/}-", "read";
 };



Mime
View raw message