mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 07:44:14 +02:00
Added block and character type devices as symlinks
This commit is contained in:
parent
3f3ced806e
commit
ef2b12e218
@ -1300,6 +1300,7 @@
|
|||||||
SYMLINK_USE_READLINK=1
|
SYMLINK_USE_READLINK=1
|
||||||
logtext "Note: Using real readlink binary to determine symlinks"
|
logtext "Note: Using real readlink binary to determine symlinks"
|
||||||
tFILE=`${READLINKBINARY} -f ${sFILE}`
|
tFILE=`${READLINKBINARY} -f ${sFILE}`
|
||||||
|
logtext "Result: readlink shows ${tFILE} as output"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# Check if we can find the file now
|
# Check if we can find the file now
|
||||||
@ -1309,6 +1310,14 @@
|
|||||||
sFILE="${tFILE}"
|
sFILE="${tFILE}"
|
||||||
logtext "Result: symlink found, pointing to file ${sFILE}"
|
logtext "Result: symlink found, pointing to file ${sFILE}"
|
||||||
FOUNDPATH=1
|
FOUNDPATH=1
|
||||||
|
elif [ -b ${tFILE} ]; then
|
||||||
|
sFILE="${tFILE}"
|
||||||
|
logtext "Result: symlink found, pointing to block device ${sFILE}"
|
||||||
|
FOUNDPATH=1
|
||||||
|
elif [ -c ${tFILE} ]; then
|
||||||
|
sFILE="${tFILE}"
|
||||||
|
logtext "Result: symlink found, pointing to character device ${sFILE}"
|
||||||
|
FOUNDPATH=1
|
||||||
elif [ -d ${tFILE} ]; then
|
elif [ -d ${tFILE} ]; then
|
||||||
sFILE="${tFILE}"
|
sFILE="${tFILE}"
|
||||||
logtext "Result: symlink found, pointing to directory ${sFILE}"
|
logtext "Result: symlink found, pointing to directory ${sFILE}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user