mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
use ${LSMODBINARY} instead of lsmod (#199)
Use detected lsmod binary instead of calling it directly.
This commit is contained in:
parent
bc313949c8
commit
770605e4c6
@ -207,7 +207,7 @@
|
||||
Register --test-no KRNL-5726 --os Linux --weight L --network NO --description "Checking Linux loaded kernel modules"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
if [ ! "${LSMODBINARY}" = "" -a -f /proc/modules ]; then
|
||||
FIND=`lsmod | awk '{ if ($1!="Module") print $1 }' | sort`
|
||||
FIND=`${LSMODBINARY} | awk '{ if ($1!="Module") print $1 }' | sort`
|
||||
Display --indent 2 --text "- Checking loaded kernel modules" --result DONE --color GREEN
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
LogText "Loaded modules according lsmod:"
|
||||
|
Loading…
x
Reference in New Issue
Block a user