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:
authorMichael Boelen <michael.boelen@cisofy.com>2020-10-22 14:24:56 +0300
committerGitHub <noreply@github.com>2020-10-22 14:24:56 +0300
commit01c970f73fddc87380e5514d9fb85c6429fae7f8 (patch)
tree7bdd311b5c6c6ef2ab694b4563f91797314bbcab /include/tests_filesystems
parent749319c188cb7eaad63012c62c0493170f6394ac (diff)
parentae7be7599ed6d5e98a68fb537e0d8f61375fbedb (diff)
Merge pull request #1044 from delscate/master
Fix wc and head cmd when using busybox
Diffstat (limited to 'include/tests_filesystems')
-rw-r--r--include/tests_filesystems10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/tests_filesystems b/include/tests_filesystems
index 8dc65acc..0de387f7 100644
--- a/include/tests_filesystems
+++ b/include/tests_filesystems
@@ -629,11 +629,11 @@
fi
done
fi
- NMOUNTS=$(mount | ${WCBINARY} --lines)
- NDEVMOUNTS=$(mount | ${AWKBINARY} '{print $6}' | ${GREPBINARY} -v nodev | ${WCBINARY} --lines)
- NEXECMOUNTS=$(mount | ${AWKBINARY} '{print $6}' | ${GREPBINARY} -v noexec | ${WCBINARY} --lines)
- NSUIDMOUNTS=$(mount | ${AWKBINARY} '{print $6}' | ${GREPBINARY} -v nosuid | ${WCBINARY} --lines)
- NWRITEANDEXECMOUNTS=$(mount | ${AWKBINARY} '{print $6}' | ${GREPBINARY} -v noexec | ${EGREPBINARY} -v '^\(ro[,)]' | ${WCBINARY} --lines)
+ NMOUNTS=$(mount | ${WCBINARY} -l)
+ NDEVMOUNTS=$(mount | ${AWKBINARY} '{print $6}' | ${GREPBINARY} -v nodev | ${WCBINARY} -l)
+ NEXECMOUNTS=$(mount | ${AWKBINARY} '{print $6}' | ${GREPBINARY} -v noexec | ${WCBINARY} -l)
+ NSUIDMOUNTS=$(mount | ${AWKBINARY} '{print $6}' | ${GREPBINARY} -v nosuid | ${WCBINARY} -l)
+ NWRITEANDEXECMOUNTS=$(mount | ${AWKBINARY} '{print $6}' | ${GREPBINARY} -v noexec | ${EGREPBINARY} -v '^\(ro[,)]' | ${WCBINARY} -l)
LogText "Result: Total without nodev:${NDEVMOUNTS} noexec:${NEXECMOUNTS} nosuid:${NSUIDMOUNTS} ro or noexec (W^X): ${NWRITEANDEXECMOUNTS}, of total ${NMOUNTS}"
Display --indent 2 --text "- Total without nodev:${NDEVMOUNTS} noexec:${NEXECMOUNTS} nosuid:${NSUIDMOUNTS} ro or noexec (W^X): ${NWRITEANDEXECMOUNTS} of total ${NMOUNTS}"
fi