mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
[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)
|
FOUND_VMLINUZ=$(ls -t ${ROOTDIR}boot/vm[l-]* 2> /dev/null | head -1)
|
||||||
fi
|
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
|
if [ -z "${VERSION_ON_DISK}" ]; then
|
||||||
|
|
||||||
LogText "Result: found ${FOUND_VMLINUZ}"
|
LogText "Result: found ${FOUND_VMLINUZ}"
|
||||||
LogText "Test: checking kernel version on disk"
|
LogText "Test: checking kernel version on disk"
|
||||||
NEXTLINE=0
|
NEXTLINE=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user