mirror of https://github.com/CISOfy/lynis.git
Initialize variables and cleanup
This commit is contained in:
parent
cfdc8228fd
commit
4faaa10a8c
|
@ -688,6 +688,7 @@
|
||||||
LIST_FS_NOT_SUPPORTED="cramfs freevxfs hfs hfsplus jffs2 squashfs udf"
|
LIST_FS_NOT_SUPPORTED="cramfs freevxfs hfs hfsplus jffs2 squashfs udf"
|
||||||
FOUND=0
|
FOUND=0
|
||||||
AVAILABLE_FS=""
|
AVAILABLE_FS=""
|
||||||
|
AVAILABLE_MODPROBE_FS=""
|
||||||
for FS in ${LIST_FS_NOT_SUPPORTED}; do
|
for FS in ${LIST_FS_NOT_SUPPORTED}; do
|
||||||
# Check if filesystem is present in modprobe output
|
# Check if filesystem is present in modprobe output
|
||||||
FIND=`${MODPROBEBINARY} -v -n $FS 2>/dev/null | ${EGREPBINARY} "/${FS}.ko" | tail -1`
|
FIND=`${MODPROBEBINARY} -v -n $FS 2>/dev/null | ${EGREPBINARY} "/${FS}.ko" | tail -1`
|
||||||
|
@ -720,6 +721,7 @@
|
||||||
else
|
else
|
||||||
LogText "Test skipped lsmod binary not found or /proc/modules can not be opened"
|
LogText "Test skipped lsmod binary not found or /proc/modules can not be opened"
|
||||||
fi
|
fi
|
||||||
|
unset AVAILABLE_FS AVAILABLE_MODPROBE_FS
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
Loading…
Reference in New Issue