mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8066709: Make some JDK system properties read only
Reviewed-by: lancea, sundar, bchristi, weijun, mchung, alanb, mullan
This commit is contained in:
parent
cad47f4a03
commit
4098f2560a
25 changed files with 215 additions and 46 deletions
|
@ -57,6 +57,8 @@ import java.security.*;
|
|||
|
||||
import java.security.Provider.Service;
|
||||
|
||||
import jdk.internal.util.StaticProperty;
|
||||
|
||||
import sun.security.jca.*;
|
||||
import sun.security.jca.GetInstance.Instance;
|
||||
import sun.security.util.Debug;
|
||||
|
@ -71,8 +73,8 @@ import sun.security.util.Debug;
|
|||
*/
|
||||
|
||||
final class JceSecurity {
|
||||
|
||||
|
||||
|
||||
|
||||
private static final Debug debug = Debug.getInstance("jca");
|
||||
|
||||
static final SecureRandom RANDOM = new SecureRandom();
|
||||
|
@ -307,7 +309,7 @@ final class JceSecurity {
|
|||
|
||||
// Prepend java.home to get the full path. normalize() in
|
||||
// case an extra "." or ".." snuck in somehow.
|
||||
String javaHomeProperty = System.getProperty("java.home");
|
||||
String javaHomeProperty = StaticProperty.javaHome();
|
||||
Path javaHomePolicyPath = Paths.get(javaHomeProperty, "conf",
|
||||
"security", "policy").normalize();
|
||||
Path cryptoPolicyPath = Paths.get(javaHomeProperty, "conf", "security",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue