diff options
author | mboelen <michael@cisofy.com> | 2015-03-03 12:59:46 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-03-03 12:59:46 +0300 |
commit | 98c9f2e3bcf41d07c2740af24ba683a6abec1102 (patch) | |
tree | 6337dd52ee1b0af2f16d1faa4d886374af81028a | |
parent | 446885d4fdcaa40b4c7b562ee08316ae03b8643a (diff) |
Blacklist a HostID with only zeros
-rwxr-xr-x | lynis | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -701,8 +701,8 @@ # Get host ID logtextbreak GetHostID - # Check if result is not empty (no blank, or hash of blank value, or minus) - if [ ! "${HOSTID}" = "-" -a ! "${HOSTID}" = "" -a ! "${HOSTID}" = "adc83b19e793491b1c6ea0fd8b46cd9f32e592fc" ]; then + # Check if result is not empty (no blank, or hash of blank value, or minus, or zeros) + if [ ! "${HOSTID}" = "-" -a ! "${HOSTID}" = "" -a ! "${HOSTID}" = "adc83b19e793491b1c6ea0fd8b46cd9f32e592fc" -a ! "${HOSTID}" = "6ef1338f520d075957424741d7ed35ab5966ae97" ]; then logtext "Info: found valid HostID ${HOSTID}" report "hostid=${HOSTID}" else |