Blame SOURCES/rh1996182-extend_security_policy.patch

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