Blame SOURCES/rh1996182-extend_security_policy.patch

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