From 7587bfdbf3ab0a3db3272b93c4a20e865c6d93b5 Mon Sep 17 00:00:00 2001 From: winterflyt <36+winterflyt@noreply.skidsolutions.xyz> Date: Mon, 30 Nov 2026 06:27:03 +0200 Subject: [PATCH] Upload files to "run/jre/conf/security/policy/limited" --- .../policy/limited/default_US_export.policy | 6 ++++++ .../security/policy/limited/default_local.policy | 14 ++++++++++++++ .../security/policy/limited/exempt_local.policy | 13 +++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 run/jre/conf/security/policy/limited/default_US_export.policy create mode 100644 run/jre/conf/security/policy/limited/default_local.policy create mode 100644 run/jre/conf/security/policy/limited/exempt_local.policy diff --git a/run/jre/conf/security/policy/limited/default_US_export.policy b/run/jre/conf/security/policy/limited/default_US_export.policy new file mode 100644 index 0000000..1f38934 --- /dev/null +++ b/run/jre/conf/security/policy/limited/default_US_export.policy @@ -0,0 +1,6 @@ +// Default US Export policy file. + +grant { + // There is no restriction to any algorithms. + permission javax.crypto.CryptoAllPermission; +}; diff --git a/run/jre/conf/security/policy/limited/default_local.policy b/run/jre/conf/security/policy/limited/default_local.policy new file mode 100644 index 0000000..2a6d513 --- /dev/null +++ b/run/jre/conf/security/policy/limited/default_local.policy @@ -0,0 +1,14 @@ +// Some countries have import limits on crypto strength. This policy file +// is worldwide importable. + +grant { + permission javax.crypto.CryptoPermission "DES", 64; + permission javax.crypto.CryptoPermission "DESede", *; + permission javax.crypto.CryptoPermission "RC2", 128, + "javax.crypto.spec.RC2ParameterSpec", 128; + permission javax.crypto.CryptoPermission "RC4", 128; + permission javax.crypto.CryptoPermission "RC5", 128, + "javax.crypto.spec.RC5ParameterSpec", *, 12, *; + permission javax.crypto.CryptoPermission "RSA", *; + permission javax.crypto.CryptoPermission *, 128; +}; diff --git a/run/jre/conf/security/policy/limited/exempt_local.policy b/run/jre/conf/security/policy/limited/exempt_local.policy new file mode 100644 index 0000000..9dd5b91 --- /dev/null +++ b/run/jre/conf/security/policy/limited/exempt_local.policy @@ -0,0 +1,13 @@ +// Some countries have import limits on crypto strength, but may allow for +// these exemptions if the exemption mechanism is used. + +grant { + // There is no restriction to any algorithms if KeyRecovery is enforced. + permission javax.crypto.CryptoPermission *, "KeyRecovery"; + + // There is no restriction to any algorithms if KeyEscrow is enforced. + permission javax.crypto.CryptoPermission *, "KeyEscrow"; + + // There is no restriction to any algorithms if KeyWeakening is enforced. + permission javax.crypto.CryptoPermission *, "KeyWeakening"; +};