mirror of https://github.com/CISOfy/lynis.git
[KRNL-5830] check for symlink
This commit is contained in:
parent
e5091772c5
commit
ab4291242d
|
@ -654,7 +654,14 @@
|
|||
FOUND_VMLINUZ=$(ls -t ${ROOTDIR}boot/vm[l-]* 2> /dev/null | head -1)
|
||||
fi
|
||||
|
||||
if [ -L "${FOUND_VMLINUZ}" ]; then
|
||||
LogText "Result: found a symlink, retrieving destination"
|
||||
FOUND_VMLINUZ=$(readlink "${FOUND_VMLINUZ}")
|
||||
LogText "Result: destination file is ${FOUND_VMLINUZ}"
|
||||
fi
|
||||
|
||||
if [ -z "${VERSION_ON_DISK}" ]; then
|
||||
|
||||
LogText "Result: found ${FOUND_VMLINUZ}"
|
||||
LogText "Test: checking kernel version on disk"
|
||||
NEXTLINE=0
|
||||
|
|
Loading…
Reference in New Issue