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:
authorZach Crownover <zachary.crownover@gmail.com>2016-11-19 15:39:57 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-11-19 15:39:57 +0300
commit659d3e42c5dcc6a60dff5f1e2301064132d98c45 (patch)
treea7f30b0e5654ca25c99cd722ec549fc6c06a3979 /include/tests_filesystems
parent483a45e50684ae80edc278f685ea28a390a2047f (diff)
Improve DragonFly support (#329)
* Update facter location for BSDs BSDs tend to place third party binaries in /usr/local rather than /usr * Add support for DragonFly boot loader detection DragonFly BSD has the same file paths for the bootloader as FreeBSD * Add kernel module checking for DragonFly DragonFly BSD checks kernel modules the same way as FreeBSD * Add DragonFly check for login shells DragonFly's login files are the same as FreeBSD's * Add HAMMER PFS Detection All PFS mounts in HAMMER systems for DragonFly will be detected now
Diffstat (limited to 'include/tests_filesystems')
-rw-r--r--include/tests_filesystems21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/tests_filesystems b/include/tests_filesystems
index 94f067bf..84022a30 100644
--- a/include/tests_filesystems
+++ b/include/tests_filesystems
@@ -207,6 +207,27 @@
#
#################################################################################
#
+ # Test : FILE-6439
+ # Description : Query all HAMMER PFS mounts from /etc/fstab
+ Register --test-no FILE-6439 --os DragonFly --weight L --network NO --category security --description "Checking HAMMER PFS mounts"
+ if [ ${SKIPTEST} -eq 0 ]; then
+ LogText "Test: Query /etc/fstab for available HAMMER PFS mount points"
+ FIND=$(${MOUNTBINARY} -p | ${AWKBINARY} '{ if ($3 == "null") { print $1":"$2":"$3":"$4":" }}')
+ if [ -z "${FIND}" ]; then
+ Display --indent 2 --text "- Querying HAMMER PFS mount points (mount -p)" --result "${STATUS_NONE}" --color WHITE
+ LogText "Result: unable to find any single PFS mount point"
+ else
+ Display --indent 2 --text "- Querying HAMMER PFS mount points (mount -p)" --result "${STATUS_FOUND}" --color GREEN
+ Report "filesystem[]=hammer"
+ for I in ${FIND}; do
+ LogText "HAMMER mount found: ${I}"
+ Report "mountpoint_hammer[]=${I}"
+ done
+ fi
+ fi
+#
+#################################################################################
+#
# Test : FILE-6332
# Description : Check swap partitions
if [ -f /etc/fstab ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi