# HG changeset patch # User chegar # Date 1452798453 0 # Node ID 13e8054a06d9657a7f7f15f3e858320f539dc15b # Parent 75262319b048a687eb8fb0bbe47946180234cbc0 7067728: Remove stopThread RuntimePermission from the default java.policy Reviewed-by: alanb, mchung, mullan diff -r 75262319b048 -r 13e8054a06d9 jdk/src/java.base/share/conf/security/java.policy --- a/jdk/src/java.base/share/conf/security/java.policy Thu Jan 14 18:22:32 2016 +0300 +++ b/jdk/src/java.base/share/conf/security/java.policy Thu Jan 14 19:07:33 2016 +0000 @@ -98,17 +98,6 @@ // default permissions granted to all domains grant { - // Allows any thread to stop itself using the java.lang.Thread.stop() - // method that takes no argument. - // Note that this permission is granted by default only to remain - // backwards compatible. - // It is strongly recommended that you either remove this permission - // from this policy file or further restrict it to code sources - // that you specify, because Thread.stop() is potentially unsafe. - // See the API specification of java.lang.Thread.stop() for more - // information. - permission java.lang.RuntimePermission "stopThread"; - // allows anyone to listen on dynamic ports permission java.net.SocketPermission "localhost:0", "listen";