7093490: adjust package access in rmiregistry
authorsmarks
Thu, 21 Jun 2012 00:20:49 -0700
changeset 14209 221f6d0a12ea
parent 14208 fd8e875982e9
child 14210 042f1a001234
7093490: adjust package access in rmiregistry Reviewed-by: ahgross, coffeys, dmocek
jdk/src/share/classes/sun/rmi/registry/RegistryImpl.java
--- a/jdk/src/share/classes/sun/rmi/registry/RegistryImpl.java	Mon Jun 18 10:00:55 2012 -0400
+++ b/jdk/src/share/classes/sun/rmi/registry/RegistryImpl.java	Thu Jun 21 00:20:49 2012 -0700
@@ -405,7 +405,8 @@
          */
         perms.add(new SocketPermission("*", "connect,accept"));
 
-        perms.add(new RuntimePermission("accessClassInPackage.sun.*"));
+        perms.add(new RuntimePermission("accessClassInPackage.sun.jvmstat.*"));
+        perms.add(new RuntimePermission("accessClassInPackage.sun.jvm.hotspot.*"));
 
         perms.add(new FilePermission("<<ALL FILES>>", "read"));