crypto-policies-20241106-1.git35892de.fc42

List of Findings

Error: SHELLCHECK_WARNING (CWE-156): [#def1]
/usr/bin/fips-finish-install:20:6: warning[SC2046]: Quote this to prevent word splitting.
#   18|   fi
#   19|   
#   20|-> if [ $(id -u) != 0 ]; then
#   21|   	echo "You must be root to run $(basename $0)"
#   22|   	exit 1

Error: SHELLCHECK_WARNING (CWE-569): [#def2]
/usr/bin/fips-finish-install:35:14: warning[SC2064]: Use single quotes, otherwise this expands now rather than when signalled.
#   33|   
#   34|   if test x"$1" == x--complete; then
#   35|-> 	trap "rm -f $dracut_cfg" ERR
#   36|   	cat >$dracut_cfg <<EOF
#   37|   # turn on fips module

Error: SHELLCHECK_WARNING (CWE-758): [#def3]
/usr/share/crypto-policies/reload-cmds.sh:1:1: error[SC2148]: Tips depend on target shell and yours is unknown. Add a shebang or a 'shell' directive.
#    1|-> systemctl try-reload-or-restart bind.service 2>/dev/null || :
#    2|   systemctl try-restart ipsec.service 2>/dev/null || :
#    3|   systemctl try-restart sshd.service 2>/dev/null || :

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-154.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namecrypto-policies-20241106-1.git35892de.fc42
store-results-to/tmp/tmp1l2ly1dr/crypto-policies-20241106-1.git35892de.fc42.tar.xz
time-created2024-11-12 23:25:44
time-finished2024-11-12 23:26:59
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp1l2ly1dr/crypto-policies-20241106-1.git35892de.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp1l2ly1dr/crypto-policies-20241106-1.git35892de.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9