7093490: adjust package access in rmiregistry

Reviewed-by: ahgross, coffeys, dmocek
This commit is contained in:
Stuart Marks 2012-06-21 00:20:49 -07:00
parent d87e57ac8a
commit 63cf10e500

View File

@ -405,7 +405,8 @@ public class RegistryImpl extends java.rmi.server.RemoteServer
*/
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"));