~pushkarnk/+git/openjdk-11-fips:main

Last commit made on 2023-08-08
Get this branch:
git clone -b main https://git.launchpad.net/~pushkarnk/+git/openjdk-11-fips
Only Pushkar Kulkarni can upload to this branch. If you are Pushkar Kulkarni please log in for upload directions.

Branch merges

Branch information

Name:
main
Repository:
lp:~pushkarnk/+git/openjdk-11-fips

Recent commits

4b0f95b... by Pushkar Kulkarni

Update changelog

dc32803... by Pushkar Kulkarni

Update the JTREG tests to run them with the openjdk-fips launcher

The tests are rewritten to be invoked by JTREG but internally
run using the openjdk-fips launcher using java.lang's ProcessBuilder.
The tests have been made independent of any particular FIPS
provider - all direct references to BouncyCastle have been
removed.

4d1de42... by Pushkar Kulkarni

Update the sanity-tests script

1. Remove the -compilejdk setting
2. Use openjdk-11 as the -testjdk
3. Use env var FIPS_JDK11_HOME to point to the openjdk-fips
installation, so that the installed launcher is used to run tests.
4. Use env var FIPS_PROVIDER to pass the name of the FIPS provider
to the JTREG tests

c571756... by Pushkar Kulkarni

Add BC property to support JKS keystores

BouncyCastle does not support the JKS keystore format be default.
Support for JKS may be turned on using the property:
org.bouncycastle.jca.enable_jks=true

Add this property to bc/provder.options file.

a8028dd... by Pushkar Kulkarni

Fix dangling links in the openjdk-fips installation

The java.security, java.policy and provider.options files under
/etc/java-11-openjdk-fips/security must be symbolic links to
the same files under the installation directory /usr/lib/jvm...
and not the other way round.

c81a291... by Pushkar Kulkarni

Fix various problems with the launcher

Issue #1: There is an issue with the order of arguments passed
by the launcher to the exec'd java. First, the arguments passed
to the launcher - the main Java application class and its program
arguments - are copied over. Later, the launcher adds more system
properties to the 'back()' of the same std::vector. As a result they are ignored.
These need to be added to the std::vector's `begin()` instead of `back()`.

Issue #2: An issue related to the fix of issue #1 is the
"-add-exports java.base/sun.security.internal.spec=ALL-UNNAMED"
argument which is split into two at the whitespace. With the fix
to #1, this would cause these to be added in the wrong order.
Instead, we could add:
"-add-exports=java.base/sun.security.internal.spec=ALL-UNNAMED"

Issue #3: The SHOW_ARGS and CLASSPATH checks in the LauncherEnvironment
constructor should be independent of each other. Replace the if-else
by if-if

b2d3ab8... by Vladimir Petko

fix formatting of PathProvider constructor

da74c64... by Vladimir Petko

changelog

9f1c5af... by Vladimir Petko

resolve symlink to an actual executable rather than use argv[0]

03f1065... by Vladimir Petko

handle nullptr in the arg/environment array