mirror of https://github.com/CISOfy/lynis.git
Only check empty binaries when we did a full scan, as for some commands the binary scanning is not performed
This commit is contained in:
parent
8d4fd1a7aa
commit
c639cb4f6e
|
@ -279,6 +279,7 @@
|
||||||
LogText "Result: Directory ${SCANDIR} does NOT exist"
|
LogText "Result: Directory ${SCANDIR} does NOT exist"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# unset SORTED_BIN_PATHS
|
# unset SORTED_BIN_PATHS
|
||||||
BINARY_SCAN_FINISHED=1
|
BINARY_SCAN_FINISHED=1
|
||||||
BINARY_PATHS_FOUND=$(echo ${BINARY_PATHS_FOUND} | sed 's/^, //g' | sed 's/ //g')
|
BINARY_PATHS_FOUND=$(echo ${BINARY_PATHS_FOUND} | sed 's/^, //g' | sed 's/ //g')
|
||||||
|
@ -286,9 +287,6 @@
|
||||||
LogText "Result: found ${COUNT} binaries"
|
LogText "Result: found ${COUNT} binaries"
|
||||||
Report "binaries_count=${COUNT}"
|
Report "binaries_count=${COUNT}"
|
||||||
Report "binary_paths=${BINARY_PATHS_FOUND}"
|
Report "binary_paths=${BINARY_PATHS_FOUND}"
|
||||||
else
|
|
||||||
LogText "Result: checking of binaries skipped in this mode"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Test if the basic system tools are defined. These will be used during the audit.
|
# Test if the basic system tools are defined. These will be used during the audit.
|
||||||
[ "${AWKBINARY:-}" ] || ExitFatal "awk binary not found"
|
[ "${AWKBINARY:-}" ] || ExitFatal "awk binary not found"
|
||||||
|
@ -312,6 +310,12 @@
|
||||||
if [ $? -gt 0 ]; then ExitFatal "${T} binary not found"; fi
|
if [ $? -gt 0 ]; then ExitFatal "${T} binary not found"; fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
else
|
||||||
|
LogText "Result: checking of binaries skipped in this mode"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
#================================================================================
|
#================================================================================
|
||||||
# Lynis - Security Auditing and System Hardening for Linux and UNIX - https://cisofy.com
|
# Lynis - Security Auditing and System Hardening for Linux and UNIX - https://cisofy.com
|
||||||
|
|
Loading…
Reference in New Issue