mirror of https://github.com/CISOfy/lynis.git
Don't show error when file system can not be opened by tune2fs
This commit is contained in:
parent
e176c0028a
commit
4dfcce354c
|
@ -151,6 +151,7 @@
|
|||
FILESYSTEM=`echo ${I} | cut -d ',' -f1`
|
||||
FILETYPE=`echo ${I} | cut -d ',' -f2`
|
||||
logtext "File system: ${FILESYSTEM} (type: ${FILETYPE})"
|
||||
report "filesystem_ext[]=${FILESYSTEM|${FILETYPE}|"
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
@ -373,12 +374,12 @@
|
|||
if [ -b /dev/root ]; then
|
||||
FIND1="/dev/root"
|
||||
else
|
||||
FIND1=`mount | grep ' / ' | awk '{ print $1 }' | sed 's/rootfs//'`
|
||||
FIND1=`mount | grep 'on / ' | awk '{ print $1 }' | sed 's/rootfs//'`
|
||||
fi
|
||||
if [ ! "${FIND1}" = "" ]; then
|
||||
logtext "Result: found ${FIND1}"
|
||||
logtext "Test: Checking default options on ${FIND1}"
|
||||
FIND2=`${TUNE2FSBINARY} -l ${FIND1} | grep "^Default mount options" | grep "acl"`
|
||||
FIND2=`${TUNE2FSBINARY} -l ${FIND1} 2> /dev/null | grep "^Default mount options" | grep "acl"`
|
||||
if [ ! "${FIND2}" = "" ]; then
|
||||
logtext "Result: found ACL option in default mount options"
|
||||
FOUND=1
|
||||
|
|
Loading…
Reference in New Issue