Blame SOURCES/rh1996182-extend_security_policy.patch

7b806d
commit 598fe421216b0a437fa36ee91a29966599867aa3
7b806d
Author: Andrew Hughes <gnu.andrew@redhat.com>
7b806d
Date:   Mon Aug 30 16:12:52 2021 +0100
7b806d
7b806d
    RH1996182: Extend default security policy to allow SunPKCS11 access to jdk.internal.misc
7b806d
7b806d
diff --git openjdk.orig/src/java.base/share/lib/security/default.policy openjdk/src/java.base/share/lib/security/default.policy
7b806d
index ab59a334cd..5db744ff17 100644
7b806d
--- openjdk.orig/src/java.base/share/lib/security/default.policy
7b806d
+++ openjdk/src/java.base/share/lib/security/default.policy
7b806d
@@ -124,6 +124,7 @@ grant codeBase "jrt:/jdk.crypto.ec" {
7b806d
 grant codeBase "jrt:/jdk.crypto.cryptoki" {
7b806d
     permission java.lang.RuntimePermission
7b806d
                    "accessClassInPackage.com.sun.crypto.provider";
7b806d
+    permission java.lang.RuntimePermission "accessClassInPackage.jdk.internal.misc";
7b806d
     permission java.lang.RuntimePermission
7b806d
                    "accessClassInPackage.sun.security.*";
7b806d
     permission java.lang.RuntimePermission "accessClassInPackage.sun.nio.ch";