Author: jim.ma
Date: 2009-12-09 04:26:34 -0500 (Wed, 09 Dec 2009)
New Revision: 11218
Modified:
stack/native/trunk/modules/testsuite/pom.xml
stack/native/trunk/modules/testsuite/src/test/resources/securityMgr/client.policy
Log:
JBWS-2692:modify the client.policy and enable the security manager
Modified: stack/native/trunk/modules/testsuite/pom.xml
===================================================================
--- stack/native/trunk/modules/testsuite/pom.xml 2009-12-09 07:12:01 UTC (rev 11217)
+++ stack/native/trunk/modules/testsuite/pom.xml 2009-12-09 09:26:34 UTC (rev 11218)
@@ -15,8 +15,7 @@
<!-- Properties -->
<properties>
- <!--surefire.security.args>-Djava.home=${java.home}
-DM2_REPO=${settings.localRepository} -Djava.security.debug=failure
-Djava.security.manager
-Djava.security.policy==${basedir}/../src/test/resources/securityMgr/client.policy
</surefire.security.args-->
- <surefire.security.args></surefire.security.args>
+ <surefire.security.args>-Djava.home=${java.home} -Djava.security.debug=failure
-Djava.security.manager
-Djava.security.policy==${basedir}/../src/test/resources/securityMgr/client.policy
</surefire.security.args>
<surefire.jdwp.args>-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005</surefire.jdwp.args>
<surefire.gc.args>-Xmx512m -XX:MaxPermSize=256m</surefire.gc.args>
<surefire.management.args>-Dcom.sun.management.jmxremote</surefire.management.args>
Modified:
stack/native/trunk/modules/testsuite/src/test/resources/securityMgr/client.policy
===================================================================
---
stack/native/trunk/modules/testsuite/src/test/resources/securityMgr/client.policy 2009-12-09
07:12:01 UTC (rev 11217)
+++
stack/native/trunk/modules/testsuite/src/test/resources/securityMgr/client.policy 2009-12-09
09:26:34 UTC (rev 11218)
@@ -1,4 +1,4 @@
-// Permissions for jbossws cxf test suite
+// Permissions for jbossws native test suite
// Trusted core Java code
grant codeBase "file:${java.home}/lib/ext/-" {
@@ -14,11 +14,6 @@
permission java.security.AllPermission;
};
-//trust all jars in m2_repo
-grant codeBase "file:${M2_REPO}/-" {
- permission java.security.AllPermission;
-};
-
grant {
//allow surefire to read compiled class in target dir and delte file
@@ -30,6 +25,12 @@
permission java.net.SocketPermission "*",
"accept,listen,connect,resolve";
permission java.net.NetPermission "setDefaultAuthenticator";
+permission java.lang.RuntimePermission
"org.jboss.security.plugins.JBossSecurityContext.setSubjectInfo";
+permission java.lang.RuntimePermission
"org.jboss.security.plugins.JBossSecurityContext.getSubjectInfo";
+permission java.lang.RuntimePermission
"org.jboss.security.SecurityAssociation.getPrincipalInfo";
+permission java.lang.RuntimePermission
"org.jboss.security.getSecurityContext";
+permission java.lang.RuntimePermission
"org.jboss.security.setSecurityContext";
+permission java.lang.RuntimePermission "setIO";
permission java.lang.RuntimePermission "setFactory";
permission java.lang.RuntimePermission "accessDeclaredMembers";
permission java.lang.RuntimePermission "createClassLoader";
@@ -40,6 +41,7 @@
permission java.lang.RuntimePermission "getProtectionDomain";
permission java.lang.RuntimePermission "getenv.*";
permission java.lang.RuntimePermission "getClassLoader";
+permission java.lang.RuntimePermission "createSecurityManager";
permission javax.management.MBeanServerPermission "findMBeanServer";
@@ -48,6 +50,12 @@
permission javax.xml.ws.WebServicePermission "publishEndpoint";
permission java.security.SecurityPermission "getPolicy";
+permission java.security.SecurityPermission "getAccessControlContext";
+
+
+permission org.jboss.metadata.spi.stack.MetaDataStackPermission "*";
+
+
};
Show replies by date