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:
authorCapashenn <37273010+Capashenn@users.noreply.github.com>2019-04-08 11:36:17 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-04-08 11:36:17 +0300
commit137dc6f0ccb1abe91c6102362209c274e6897ec7 (patch)
tree9406e45e346858aeb94c0977ed35d08bcb6bb9c3 /include/tests_filesystems
parent71a0c79053119fedfcb68d47c7b4483b16a8ec1c (diff)
fix FILE-6374 (#672)
Diffstat (limited to 'include/tests_filesystems')
-rw-r--r--include/tests_filesystems4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_filesystems b/include/tests_filesystems
index 43b9e7ec..8bf47685 100644
--- a/include/tests_filesystems
+++ b/include/tests_filesystems
@@ -560,7 +560,7 @@
# ---------------------------------------------------------
FILESYSTEMS_TO_CHECK="/boot:nodev,noexec,nosuid /dev/shm:nosuid,nodev,noexec /home:nodev,nosuid /tmp:nodev,noexec,nosuid /var:nosuid /var/log:nodev,noexec,nosuid /var/log/audit:nodev,noexec,nosuid /var/tmp:nodev,noexec,nosuid"
- Register --test-no FILE-6374 --os Linux --weight L --network NO --category security --description "Checking /boot mount options"
+ Register --test-no FILE-6374 --os Linux --weight L --network NO --category security --description "Checking partitions mount options"
if [ ${SKIPTEST} -eq 0 ]; then
if [ -f /etc/fstab ]; then
for I in ${FILESYSTEMS_TO_CHECK}; do
@@ -574,7 +574,7 @@
fi
fi
if [ ! -z "${FS_FSTAB}" ]; then
- FOUND_FLAGS=$(${AWKBINARY} -v fs=${FILESYSTEM} '{ if ($2==fs) { print $4 } }' /etc/fstab | ${SEDBINARY} 's/,/ /g' | ${TRBINARY} '\n' ' ')
+ FOUND_FLAGS=$(${AWKBINARY} -v fs=${FILESYSTEM} '{ if ($2==fs) { print $4 } }' /etc/fstab | ${SEDBINARY} 's/,/ /g' | ${TRBINARY} -d '\n')
LogText "File system: ${FILESYSTEM}"
LogText "Expected flags: ${EXPECTED_FLAGS}"
LogText "Found flags: ${FOUND_FLAGS}"