Author: ron.sigal(a)jboss.com
Date: 2008-03-25 04:55:15 -0400 (Tue, 25 Mar 2008)
New Revision: 3743
Modified:
remoting2/branches/2.x/test.policy
Log:
JBREM-920: Added some privileges, moved some from Remoting proper to test classes.
Modified: remoting2/branches/2.x/test.policy
===================================================================
--- remoting2/branches/2.x/test.policy 2008-03-25 08:52:47 UTC (rev 3742)
+++ remoting2/branches/2.x/test.policy 2008-03-25 08:55:15 UTC (rev 3743)
@@ -17,17 +17,11 @@
permission javax.management.MBeanTrustPermission "register";
permission javax.management.MBeanPermission
"javax.management.MBeanServerDelegate#MBeanServerId[JMImplementation:type=MBeanServerDelegate]",
"getAttribute";
permission javax.management.MBeanPermission "-#-[-]",
"queryMBeans";
- permission javax.management.MBeanPermission
"org.jboss.remoting.transport.socket.SocketServerInvoker#-[jboss.remoting:host=127.0.0.1,*,service=invoker,transport=socket]",
"unregisterMBean, registerMBean, queryMBeans, isInstanceOf";
- permission javax.management.MBeanPermission
"org.jboss.remoting.transport.socket.SocketServerInvoker#-[jboss.remoting:host=localhost,*,service=invoker,transport=socket]",
"unregisterMBean, registerMBean, queryMBeans, isInstanceOf";
- permission javax.management.MBeanPermission
"org.jboss.remoting.transport.socket.SocketServerInvoker#-[jboss.remoting:host=\"[::1]\",*,service=invoker,transport=socket]",
"unregisterMBean, registerMBean, queryMBeans, isInstanceOf";
- permission javax.management.MBeanPermission
"org.jboss.remoting.transport.socket.SocketServerInvoker#-[jboss.remoting:host=\"[::ffff:127.0.0.1]\",*,service=invoker,transport=socket]",
"unregisterMBean, registerMBean, queryMBeans, isInstanceOf";
- permission javax.management.MBeanPermission
"org.jboss.remoting.transport.socket.SocketServerInvoker#-[jboss.remoting:host=\"[::]\",*,service=invoker,transport=socket]",
"unregisterMBean, registerMBean, queryMBeans, isInstanceOf";
permission javax.management.MBeanPermission
"org.jboss.remoting.transport.Connector#-[jboss.remoting:transport=socket,type=Connector]",
"queryMBeans, isInstanceOf";
permission javax.management.MBeanPermission
"org.jboss.remoting.transport.Connector#-[jboss.remoting:transport=sslsocket,type=Connector]",
"queryMBeans, isInstanceOf";
- permission javax.management.MBeanPermission
"javax.management.MBeanServerDelegate#-[JMImplementation:type=MBeanServerDelegate]",
"queryMBeans, isInstanceOf";
+ permission javax.management.MBeanPermission
"javax.management.MBeanServerDelegate#-[JMImplementation:type=MBeanServerDelegate]",
"queryMBeans, isInstanceOf, getAttribute";
permission javax.management.MBeanPermission
"org.jboss.remoting.detection.multicast.MulticastDetector#-[remoting:type=JNDIDetector]",
"queryMBeans, isInstanceOf";
- permission javax.management.MBeanPermission
"org.jboss.remoting.detection.multicast.MulticastDetector#-[remoting:type=MulticastDetector]",
"queryMBeans, isInstanceOf";
- permission javax.management.MBeanPermission
"org.jboss.remoting.detection.multicast.MulticastDetector#-[remoting:type=MultiplexDetector]",
"queryMBeans, isInstanceOf";
+ permission javax.management.MBeanPermission
"org.jboss.remoting.detection.multicast.MulticastDetector#-[remoting:type=MulticastDetector]",
"queryMBeans, isInstanceOf, unregisterMBean";
permission javax.management.MBeanPermission
"org.jboss.remoting.network.NetworkRegistry#-[remoting:type=NetworkRegistry]",
"queryMBeans, isInstanceOf";
permission javax.management.MBeanPermission
"org.jboss.remoting.network.NetworkRegistry#Servers[remoting:type=NetworkRegistry]",
"getAttribute";
@@ -68,6 +62,7 @@
// Used by org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(),
though still a Remoting permission I think
permission java.lang.RuntimePermission
"accessClassInPackage.sun.beans.editors";
+ permission java.lang.RuntimePermission
"accessClassInPackage.sun.net.www.protocol.http";
// TODO - JBoss Serialization SHOULD be doing these operations in a privileged block
- JBSER-105
permission java.lang.RuntimePermission "accessDeclaredMembers";
@@ -113,8 +108,14 @@
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
permission javax.management.MBeanServerPermission "createMBeanServer,
findMBeanServer";
permission javax.management.MBeanTrustPermission "register";
+ permission javax.management.MBeanPermission
"org.jboss.remoting.transport.socket.SocketServerInvoker#-[jboss.remoting:host=127.0.0.1,*,service=invoker,transport=socket]",
"unregisterMBean, registerMBean, queryMBeans, isInstanceOf";
+ permission javax.management.MBeanPermission
"org.jboss.remoting.transport.socket.SocketServerInvoker#-[jboss.remoting:host=localhost,*,service=invoker,transport=socket]",
"unregisterMBean, registerMBean, queryMBeans, isInstanceOf";
+ permission javax.management.MBeanPermission
"org.jboss.remoting.transport.socket.SocketServerInvoker#-[jboss.remoting:host=\"[::1]\",*,service=invoker,transport=socket]",
"unregisterMBean, registerMBean, queryMBeans, isInstanceOf";
+ permission javax.management.MBeanPermission
"org.jboss.remoting.transport.socket.SocketServerInvoker#-[jboss.remoting:host=\"[::ffff:127.0.0.1]\",*,service=invoker,transport=socket]",
"unregisterMBean, registerMBean, queryMBeans, isInstanceOf";
+ permission javax.management.MBeanPermission
"org.jboss.remoting.transport.socket.SocketServerInvoker#-[jboss.remoting:host=\"[::]\",*,service=invoker,transport=socket]",
"unregisterMBean, registerMBean, queryMBeans, isInstanceOf";
permission javax.management.MBeanPermission
"org.jboss.remoting.transport.Connector#-[jboss.remoting:*,transport=socket,type=Connector]",
"registerMBean, unregisterMBean, queryMBeans, isInstanceOf";
permission javax.management.MBeanPermission
"org.jboss.remoting.transport.Connector#-[jboss.remoting:transport=socket,type=Connector]",
"registerMBean, unregisterMBean, queryMBeans, isInstanceOf";
+ permission javax.management.MBeanPermission
"org.jboss.remoting.transport.Connector#-[test:type=connector]",
"registerMBean";
permission javax.management.MBeanPermission
"org.jboss.test.remoting.detection.metadata.MetadataTestCase$TestNetworkRegistry#-[remoting:type=NetworkRegistry]",
"registerMBean, unregisterMBean, queryMBeans, isInstanceOf";
permission javax.management.MBeanPermission
"org.jboss.remoting.network.NetworkRegistry#-[remoting:type=NetworkRegistry]",
"registerMBean, unregisterMBean, queryMBeans, isInstanceOf";
permission javax.management.MBeanPermission
"org.jboss.remoting.detection.multicast.MulticastDetector#-[remoting:type=JNDIDetector]",
"registerMBean, queryMBeans, isInstanceOf";
@@ -126,7 +127,11 @@
permission java.lang.RuntimePermission "createClassLoader";
permission java.lang.RuntimePermission "getClassLoader";
permission java.lang.RuntimePermission "setContextClassLoader";
+ permission java.io.FilePermission
"${build.home}/output/tests/classes/org/jboss/test/remoting/classloader/race/test.jar",
"read";
+ // Used by the descendents of org.jboss.test.remoting.shutdown.ShutdownTestParent.
+ permission java.io.FilePermission "<<ALL FILES>>",
"execute";
+
// This is technically the JNP server, but it seems intentional - note that this
might mask other problems though
permission java.net.SocketPermission "*:*", "accept, connect,
resolve";