diff options
author | Capashenn <37273010+Capashenn@users.noreply.github.com> | 2019-04-02 08:46:04 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-04-02 08:46:04 +0300 |
commit | 7b7086566da4b677470c13d65261719582a6bca5 (patch) | |
tree | 53557d19def7e2019ed0bae5a321230f573b01a2 /include/tests_filesystems | |
parent | d0df518426dd3ddb6f36bce86140e15c8e65ee81 (diff) |
Add test FILE-6324 check XFS file systems (#699)
Diffstat (limited to 'include/tests_filesystems')
-rw-r--r-- | include/tests_filesystems | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/tests_filesystems b/include/tests_filesystems index a52bb66b..e1be0a1f 100644 --- a/include/tests_filesystems +++ b/include/tests_filesystems @@ -164,6 +164,28 @@ # ################################################################################# # + # Test : FILE-6324 + # Description : Checking Linux XFS file systems + Register --test-no FILE-6324 --os Linux --weight L --network NO --category security --description "Checking XFS file systems" + if [ ${SKIPTEST} -eq 0 ]; then + LogText "Test: Checking for Linux XFS file systems" + FIND=$(${MOUNTBINARY} -t xfs | ${AWKBINARY} '{ print $3","$5 }') + if [ ! -z "${FIND}" ]; then + LogText "Result: found one or more XFS file systems" + for I in ${FIND}; do + FILESYSTEM=$(echo ${I} | ${CUTBINARY} -d ',' -f1) + FILETYPE=$(echo ${I} | ${CUTBINARY} -d ',' -f2) + LogText "File system: ${FILESYSTEM} (type: ${FILETYPE})" + Report "file_systems_xfs[]=${FILESYSTEM}|${FILETYPE}|" + done + else + LogText "Result: no XFS file systems found" + Report "file_systems_xfs[]=none" + fi + fi +# +################################################################################# +# # Test : FILE-6329 # Description : Query all FFS/UFS mounts from /etc/fstab if [ -f /etc/fstab ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi |