mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue