mirror of https://github.com/CISOfy/lynis.git
Allow option to configure host IDs via profile
This commit is contained in:
parent
304a5c20a9
commit
aadd58e6a6
|
@ -112,6 +112,7 @@ unset LANG
|
|||
HEADBINARY=""
|
||||
HELPER=""
|
||||
HOSTID=""
|
||||
HOSTID2=""
|
||||
HTTPDBINARY=""
|
||||
IDS_IPS_TOOL_FOUND=0
|
||||
IPFBINARY=""
|
||||
|
|
|
@ -772,8 +772,6 @@
|
|||
################################################################################
|
||||
|
||||
GetHostID() {
|
||||
HOSTID=""
|
||||
HOSTID2=""
|
||||
FIND=""
|
||||
# Avoid some hashes (empty, only zeros)
|
||||
BLACKLISTED_HASHES="6ef1338f520d075957424741d7ed35ab5966ae97 adc83b19e793491b1c6ea0fd8b46cd9f32e592fc"
|
||||
|
|
|
@ -151,6 +151,14 @@
|
|||
AddSetting "group" "${GROUP_NAME}" "Group"
|
||||
;;
|
||||
|
||||
hostid)
|
||||
HOSTID="${VALUE}"
|
||||
;;
|
||||
|
||||
hostid2)
|
||||
HOSTID2="${VALUE}"
|
||||
;;
|
||||
|
||||
# Language
|
||||
language | lang)
|
||||
LogText "Language set via profile to '${VALUE}'"
|
||||
|
|
Loading…
Reference in New Issue