mirror of https://github.com/CISOfy/lynis.git
[NETW-3015] check for promiscuity value that is higher than 0 instead of just 1
This commit is contained in:
parent
232b1cdc3f
commit
a7b48e40b0
|
@ -530,7 +530,7 @@
|
|||
FOUNDPROMISC=0
|
||||
for I in ${NETWORK}; do
|
||||
if [ ${USE_IP_INSTEAD_IFCONFIG} -eq 1 ]; then
|
||||
FIND=$(${IPBINARY} -o -d link show ${I} 2> /dev/null | ${GREPBINARY} 'promiscuity 1')
|
||||
FIND=$(${IPBINARY} -o -d link show ${I} 2> /dev/null | ${GREPBINARY} "promiscuity [1-9]")
|
||||
else
|
||||
FIND=$(${IFCONFIGBINARY} ${I} 2> /dev/null | ${GREPBINARY} PROMISC)
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue