Blame SOURCES/rh1996182-extend_security_policy.patch

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