Task #21 - crypto-policies-20240320-1.git58e3d95.fc41/scan-results.err

back to task #21
download
Error: SHELLCHECK_WARNING (CWE-156):
/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):
/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):
/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 || :