mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 15:54:09 +02:00
Blacklist a HostID with only zeros
This commit is contained in:
parent
446885d4fd
commit
98c9f2e3bc
4
lynis
4
lynis
@ -701,8 +701,8 @@
|
|||||||
# Get host ID
|
# Get host ID
|
||||||
logtextbreak
|
logtextbreak
|
||||||
GetHostID
|
GetHostID
|
||||||
# Check if result is not empty (no blank, or hash of blank value, or minus)
|
# Check if result is not empty (no blank, or hash of blank value, or minus, or zeros)
|
||||||
if [ ! "${HOSTID}" = "-" -a ! "${HOSTID}" = "" -a ! "${HOSTID}" = "adc83b19e793491b1c6ea0fd8b46cd9f32e592fc" ]; then
|
if [ ! "${HOSTID}" = "-" -a ! "${HOSTID}" = "" -a ! "${HOSTID}" = "adc83b19e793491b1c6ea0fd8b46cd9f32e592fc" -a ! "${HOSTID}" = "6ef1338f520d075957424741d7ed35ab5966ae97" ]; then
|
||||||
logtext "Info: found valid HostID ${HOSTID}"
|
logtext "Info: found valid HostID ${HOSTID}"
|
||||||
report "hostid=${HOSTID}"
|
report "hostid=${HOSTID}"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user