From d7a370450e8bc6fb0be19ff21b14c364423a2b66 Mon Sep 17 00:00:00 2001 From: teoberi Date: Thu, 25 Apr 2024 09:23:08 +0300 Subject: [PATCH] Update hardening-checks.sh (fix Fortify "Partial" case) Change the binaries being tested --- tests/hardening-checks.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hardening-checks.sh b/tests/hardening-checks.sh index ec7c383..e2adfea 100755 --- a/tests/hardening-checks.sh +++ b/tests/hardening-checks.sh @@ -275,7 +275,7 @@ for bin in rel.o rel32.o rel_cl.o rel_cl32.o; do fi done # Partial -for bin in rel.o rel32.o rel_cl.o rel_cl32.o; do +for bin in partial partial32 partial_cl partial_cl32; do if [[ $("${PARENT}"/checksec --file="${DIR}/binaries/${bin}" --format=csv | cut -d, -f8) != "Partial" ]]; then echo "No Fortify validation failed on \"${bin}\": $("${PARENT}"/checksec --file="${DIR}/binaries/${bin}" --format=csv | cut -d, -f8)" exit 1