Skip to content

Commit

Permalink
Add FIPS NSS support on p/z linux platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
taoliult committed Nov 14, 2023
1 parent 3dfae78 commit 2a5eac8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions closed/custom/modules/java.base/Copy.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ ifneq ($(OPENSSL_BUNDLE_LIB_PATH), )
endif # OPENJ9_ENABLE_JITSERVER
endif # OPENSSL_BUNDLE_LIB_PATH
################################################################################
# Copy the nss.fips.cfg only on x86 linux
# Copy the nss.fips.cfg only on x86/p/z linux

ifeq ($(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH), linux-x86)
ifneq ($(filter linux-x86 linux-ppc64le linux-s390x, $(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU)), )
NSS_FIPS_CFG_SRC := $(TOPDIR)/closed/src/java.base/share/conf/security/nss.fips.cfg
NSS_FIPS_CFG_DST := $(CONF_DST_DIR)/security/nss.fips.cfg

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public final class RestrictedSecurity {

private static RestrictedSecurityProperties restricts;

private static final List<String> supportPlatforms = List.of("amd64");
private static final List<String> supportPlatforms = List.of("amd64", "ppc64le", "s390x");

static {
@SuppressWarnings("removal")
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/share/conf/security/java.security
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ security.provider.tbd=Apple
#endif
security.provider.tbd=SunPKCS11

#ifdef linux-x86
#if defined (linux-x86) || defined (linux-ppc64le) || defined (linux-s390x)
#
# Java Restricted Security Mode
#
Expand Down

0 comments on commit 2a5eac8

Please sign in to comment.