Fixed findings

List of Findings

Error: SHELLCHECK_WARNING (CWE-457): [#def1]
/usr/bin/ima-setup:36:10: warning[SC2154]: policy_file is referenced but not assigned.
#   34|   		ima_policy_path=${_opt#*=}
#   35|   		if [[ ! -e $ima_policy_path ]]; then
#   36|-> 			echo "$policy_file doesn't exist"
#   37|   			exit 1
#   38|   		fi

Error: SHELLCHECK_WARNING (CWE-563): [#def2]
/usr/bin/ima-setup:41:3: warning[SC2034]: reinstall_threshold appears unused. Verify use (or export if used externally).
#   39|   		;;
#   40|   	--reinstall_threshold=*)
#   41|-> 		reinstall_threshold=${_opt#*=}
#   42|   		;;
#   43|   	*)

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-78.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameima-evm-utils-1.6.2-5.fc43
diffbase-store-results-to/tmp/tmpixr9nt7o/ima-evm-utils-1.6.2-5.fc43.tar.xz
diffbase-time-created2025-04-25 12:59:49
diffbase-time-finished2025-04-25 13:01:10
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpixr9nt7o/ima-evm-utils-1.6.2-5.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpixr9nt7o/ima-evm-utils-1.6.2-5.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-78.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameima-evm-utils-1.6.2-4.fc42
store-results-to/tmp/tmptkwby046/ima-evm-utils-1.6.2-4.fc42.tar.xz
time-created2025-04-25 12:57:46
time-finished2025-04-25 12:59:29
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmptkwby046/ima-evm-utils-1.6.2-4.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmptkwby046/ima-evm-utils-1.6.2-4.fc42.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9