crypto-policies-20240320-1.git58e3d95.fc41

List of Defects

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-clang18.1.3
analyzer-version-cppcheck2.13.0
analyzer-version-gcc14.0.1
analyzer-version-gcc-analyzer14.0.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-5.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namecrypto-policies-20240320-1.git58e3d95.fc41
store-results-to/tmp/tmp3z0p4m65/crypto-policies-20240320-1.git58e3d95.fc41.tar.xz
time-created2024-04-22 10:47:30
time-finished2024-04-22 10:48:28
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp3z0p4m65/crypto-policies-20240320-1.git58e3d95.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp3z0p4m65/crypto-policies-20240320-1.git58e3d95.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9