Blame SOURCES/rh1996182-extend_security_policy.patch

d1af5a
commit bfd7c5dae9c15266799cb885b8c60199217b65b9
d1af5a
Author: Andrew Hughes <gnu.andrew@redhat.com>
d1af5a
Date:   Mon Aug 30 16:14:14 2021 +0100
d1af5a
d1af5a
    RH1996182: Extend default security policy to allow SunPKCS11 access to jdk.internal.access
d1af5a
d1af5a
diff --git openjdk.orig/src/java.base/share/lib/security/default.policy openjdk/src/java.base/share/lib/security/default.policy
d1af5a
index 8356e56367b..23925f048be 100644
d1af5a
--- openjdk.orig/src/java.base/share/lib/security/default.policy
d1af5a
+++ openjdk/src/java.base/share/lib/security/default.policy
d1af5a
@@ -128,6 +128,7 @@ grant codeBase "jrt:/jdk.crypto.ec" {
d1af5a
 grant codeBase "jrt:/jdk.crypto.cryptoki" {
d1af5a
     permission java.lang.RuntimePermission
d1af5a
                    "accessClassInPackage.com.sun.crypto.provider";
d1af5a
+    permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.access";
d1af5a
     permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.misc";
d1af5a
     permission java.lang.RuntimePermission
d1af5a
                    "accessClassInPackage.sun.security.*";