Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2014-10-30 01:07:59 +0300
committermboelen <michael@cisofy.com>2014-10-30 01:07:59 +0300
commit4dfcce354c0a55dcffd4d42a8b478e3c380c3126 (patch)
tree9800a48fdf7be77936d9aa2ad756e0617473cbce
parente176c0028a0fe7a51db2d520f4ca7ada9ef39eb3 (diff)
Don't show error when file system can not be opened by tune2fs
-rw-r--r--include/tests_filesystems5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/tests_filesystems b/include/tests_filesystems
index dc6031d6..49ad559b 100644
--- a/include/tests_filesystems
+++ b/include/tests_filesystems
@@ -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