diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2020-03-25 12:11:34 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2020-03-25 12:11:34 +0300 |
commit | db117ae64428bf3b0d33bdd872f654b874e7b4da (patch) | |
tree | 3692d417ee6d3087f74b6d75a395c20e080feb2d /include | |
parent | f644927a4209cf2caf27c6a8152c9bf6c610676c (diff) | |
parent | 4d9e7a158f1a606b622371dda8d7ca1eca85fa5a (diff) |
Merge branch 'master' of https://github.com/CISOfy/lynis
Diffstat (limited to 'include')
-rw-r--r-- | include/tests_filesystems | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/tests_filesystems b/include/tests_filesystems index 70efd2cc..38b4c0d0 100644 --- a/include/tests_filesystems +++ b/include/tests_filesystems @@ -628,6 +628,13 @@ 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) + 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 # ################################################################################# |