File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 exit 1
1111fi
1212
13+ # Deterministic force-fail probe. The pam_pkcs11 test below exercises PAM via
14+ # 'su' as root, which never actually authenticates, so a force-fail-induced
15+ # crypto failure inside pam_pkcs11.so will not propagate to the script's exit
16+ # status. Probe wolfProvider directly here so the workflow fails closed if
17+ # WOLFPROV_FORCE_FAIL=1 is set but crypto still succeeds (e.g. apt replaced
18+ # the patched libssl3 and OpenSSL fell back to its built-in default provider).
19+ if [ " ${WOLFPROV_FORCE_FAIL:- 0} " = " 1" ]; then
20+ if openssl rand -hex 16 > /dev/null 2>&1 ; then
21+ echo " FAIL: openssl rand succeeded with WOLFPROV_FORCE_FAIL=1;"
22+ echo " wolfProvider is not actually intercepting crypto."
23+ exit 1
24+ fi
25+ echo " [*] Force-fail probe confirmed wolfProvider is failing as expected"
26+ exit 1
27+ fi
28+
1329echo " [*] Installing build dependencies..."
1430apt-get update
1531DEBIAN_FRONTEND=noninteractive apt-get install -y \
You can’t perform that action at this time.
0 commit comments