Rate This Document
Findability
Accuracy
Completeness
Readability

Applying the HAF Patch Package

  1. Obtain the patch files BoostKit-haf_1.3.0.SPC2.zip and BoostKit-haf_1.3.0.SPC6.zip, and upload them to the server. For details, see Obtaining the Patch Package.
  2. Stop the HAF applications and service.
    1. On the host node, stop the HAF service applications.
    2. On the offload node with the HAF library, stop the HAF service applications.
    3. On the offload node with the HAF service, stop all HAF service applications and the HAF service.
      ./tools/haf-tool service --stop -s <service_name>
      ./tools/haf-tool stop
  3. Decompress BoostKit-haf_1.3.0.SPC2.zip.
    unzip BoostKit-haf_1.3.0.SPC2.zip
  4. Replace the existing SO and binary files.
    • Replace the following files on the host node:
      chmod 700 -R haf-host/lib
      /usr/bin/cp -rf libhaf_link_host.so haf-host/lib/
      /usr/bin/cp -rf libssl.so.1.1 haf-host/lib/
      /usr/bin/cp -rf libcrypto.so.1.1 haf-host/lib/
      /usr/bin/cp -rf libkmc_tool.so haf-host/lib/
      /usr/bin/cp -rf haf-1.3.0.jar haf-host/lib/jar/
      chmod 500 -R haf-host/lib
      chmod 700 -R haf-host/tools/
      /usr/bin/cp -rf haf-tool haf-host/tools/
      chmod 500 -R haf-host/tools
      chmod 700 -R haf-host/bin
      /usr/bin/cp -rf kmc_tool_bin haf-host/bin
      chmod 500 -R haf-host/bin
    • Replace the corresponding files on the offload node with the HAF service:
      chmod 700 -R haf-target/lib
      /usr/bin/cp -rf libhaf_link_target.so haf-target/lib/
      /usr/bin/cp -rf libhaf_offload_device.so haf-target/lib/
      /usr/bin/cp -rf libkmc_tool.so haf-target/lib/
      /usr/bin/cp -rf libssl.so.1.1 haf-target/lib/
      /usr/bin/cp -rf libcrypto.so.1.1 haf-target/lib
      /usr/bin/cp -rf haf-1.3.0.jar haf-target/lib/jar/
      chmod 500 -R haf-target/lib
      chmod 700 -R haf-target/tools/
      /usr/bin/cp -rf haf-tool haf-target/tools/
      chmod 500 -R haf-target/tools
      chmod 700 -R haf-target/bin/
      /usr/bin/cp -rf verification haf-target/bin/
      /usr/bin/cp -rf kmc_tool_bin haf-target/bin
      /usr/bin/cp -rf haf_daemon haf-target/bin
      chmod 500 -R haf-target/bin
    • Replace the corresponding files on the offload node with the HAF library:
      chmod 700 -R haf-offload/lib
      /usr/bin/cp -rf libhaf_link_target.so haf-offload/lib/
      /usr/bin/cp -rf libhaf_offload_device.so haf-offload/lib/
      /usr/bin/cp -rf libkmc_tool.so haf-offload/lib/
      /usr/bin/cp -rf haf-1.3.0.jar haf-offload/lib/jar/
      /usr/bin/cp -rf libssl.so.1.1 haf-offload/lib/
      /usr/bin/cp -rf libcrypto.so.1.1 haf-offload/lib
      chmod 500 -R haf-offload/lib
      chmod 700 -R haf-offload/tools/
      /usr/bin/cp -rf haf-tool haf-offload/tools/
      chmod 500 -R haf-offload/tools
      chmod 700 -R haf-offload/bin
      /usr/bin/cp -rf kmc_tool_bin haf-offload/bin
      chmod 500 -R haf-offload/bin
  5. Delete the patch files.
    rm -f libhaf_link_host.so
    rm -f libhaf_link_target.so
    rm -f libssl.so.1.1
    rm -f libcrypto.so.1.1
    rm -f libkmc_tool.so
    rm -f libhaf_offload_device.so
    rm -f haf-tool
    rm -f verification
    rm -f kmc_tool_bin
    rm -f haf-1.3.0.jar
    rm -f haf_daemon
  6. Decompress BoostKit-haf_1.3.0.SPC6.zip.
    unzip BoostKit-haf_1.3.0.SPC6.zip
  7. Replace the existing SO and binary files.
    • Replace the following files on the host node:
      chmod 700 -R haf-host/lib
      /usr/bin/cp -rf libhaf_link_host.so haf-host/lib/
      /usr/bin/cp -rf libssl.so.1.1 haf-host/lib/
      /usr/bin/cp -rf libcrypto.so.1.1 haf-host/lib/
      chmod 500 -R haf-host/lib
      chmod 700 -R haf-host/tools/
      /usr/bin/cp -rf haf-tool haf-host/tools/
      chmod 500 -R haf-host/tools
    • Replace the corresponding files on the offload node with the HAF service:
      chmod 700 -R haf-target/lib
      /usr/bin/cp -rf libhaf_link_target.so haf-target/lib/
      /usr/bin/cp -rf libssl.so.1.1 haf-target/lib/
      /usr/bin/cp -rf libcrypto.so.1.1 haf-target/lib
      chmod 500 -R haf-target/lib
      chmod 700 -R haf-target/tools/
      /usr/bin/cp -rf haf-tool haf-target/tools/
      chmod 500 -R haf-target/tools
      chmod 700 -R haf-target/bin/
      /usr/bin/cp -rf verification haf-target/bin/
      chmod 500 -R haf-target/bin/
    • Replace the corresponding files on the offload node with the HAF library:
      chmod 700 -R haf-offload/lib
      /usr/bin/cp -rf libhaf_link_target.so haf-offload/lib/
      /usr/bin/cp -rf libssl.so.1.1 haf-offload/lib/
      /usr/bin/cp -rf libcrypto.so.1.1 haf-offload/lib
      chmod 500 -R haf-offload/lib
      chmod 700 -R haf-offload/tools/
      /usr/bin/cp -rf haf-tool haf-offload/tools/
      chmod 500 -R haf-offload/tools
  8. Delete the patch files.
    rm -f libhaf_link_host.so
    rm -f libhaf_link_target.so
    rm -f libssl.so.1.1
    rm -f libcrypto.so.1.1
    rm -f haf-tool
    rm -f verification
  9. Restart the HAF service and applications.
    1. On the offload node with the HAF service, restart the HAF service.
      ./tools/haf-tool restart
    2. On the offload node with the HAF library, restart the HAF service applications.
    3. On the host node, restart the HAF service applications.