8154190: Deprivilege java.compiler module
authormchung
Thu, 05 May 2016 16:36:06 -0700
changeset 37795 c5dc5ab60139
parent 37794 7223f8ad31a5
child 37796 256c45c4af5d
8154190: Deprivilege java.compiler module Reviewed-by: alanb, chegar, jjg
jdk/src/java.base/share/conf/security/java.policy
--- a/jdk/src/java.base/share/conf/security/java.policy	Thu May 05 13:57:47 2016 -0700
+++ b/jdk/src/java.base/share/conf/security/java.policy	Thu May 05 16:36:06 2016 -0700
@@ -8,6 +8,10 @@
         permission java.security.AllPermission;
 };
 
+grant codeBase "jrt:/java.compiler" {
+        permission java.security.AllPermission;
+};
+
 grant codeBase "jrt:/jdk.crypto.ucrypto" {
         permission java.lang.RuntimePermission "accessClassInPackage.sun.security.*";
         permission java.lang.RuntimePermission "accessClassInPackage.sun.nio.ch";