changeset 5423:2eda6a6b9597

7093490: adjust package access in rmiregistry Reviewed-by: ahgross, coffeys, dmocek
author smarks
date Thu, 21 Jun 2012 00:20:49 -0700
parents 0066fdf523d4
children 0680a1e4fa96
files src/share/classes/sun/rmi/registry/RegistryImpl.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/rmi/registry/RegistryImpl.java	Tue Jun 19 13:16:19 2012 -0400
+++ b/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"));