# HG changeset patch # User vtewari # Date 1506418736 -19800 # Node ID b3a91921bafc48f50c137a39876a54e662ac97bc # Parent b841be61b9d96cc090c34f6ea1659056cdd9e46d 8159526: Deprivilege jdk.httpserver Reviewed-by: chegar, alanb, michaelm, mchung diff -r b841be61b9d9 -r b3a91921bafc make/common/Modules.gmk --- a/make/common/Modules.gmk Tue Sep 26 10:20:35 2017 +0100 +++ b/make/common/Modules.gmk Tue Sep 26 15:08:56 2017 +0530 @@ -58,7 +58,6 @@ java.rmi \ java.security.sasl \ java.xml \ - jdk.httpserver \ jdk.internal.vm.ci \ jdk.management \ jdk.management.agent \ @@ -112,6 +111,7 @@ jdk.crypto.cryptoki \ jdk.crypto.ec \ jdk.dynalink \ + jdk.httpserver \ jdk.incubator.httpclient \ jdk.jsobject \ jdk.localedata \ diff -r b841be61b9d9 -r b3a91921bafc src/java.base/share/lib/security/default.policy --- a/src/java.base/share/lib/security/default.policy Tue Sep 26 10:20:35 2017 +0100 +++ b/src/java.base/share/lib/security/default.policy Tue Sep 26 15:08:56 2017 +0530 @@ -142,6 +142,10 @@ permission java.security.AllPermission; }; +grant codeBase "jrt:/jdk.httpserver" { + permission java.security.AllPermission; +}; + grant codeBase "jrt:/jdk.internal.le" { permission java.security.AllPermission; };