changeset 16596:f33cb0416064

8154189: Deprivilege java.sql and java.sql.rowset module Reviewed-by: alanb, mchung
author lancea
date Tue, 31 May 2016 13:43:15 -0400
parents 4d87d6baed78
children 5fc750dd18a5
files src/java.base/share/conf/security/java.policy
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/conf/security/java.policy	Tue May 31 13:10:46 2016 +0530
+++ b/src/java.base/share/conf/security/java.policy	Tue May 31 13:43:15 2016 -0400
@@ -33,6 +33,14 @@
         permission java.io.FilePermission "${java.home}/conf/security/ucrypto-solaris.cfg", "read";
 };
 
+grant codeBase "jrt:/java.sql" {
+        permission java.security.AllPermission;
+};
+
+grant codeBase "jrt:/java.sql.rowset" {
+        permission java.security.AllPermission;
+};
+
 grant codeBase "jrt:/jdk.crypto.ec" {
         permission java.lang.RuntimePermission "accessClassInPackage.sun.security.*";
         permission java.lang.RuntimePermission "loadLibrary.sunec";