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>2019-12-18 14:17:46 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-12-18 14:17:46 +0300
commit09f29a5e64d4eb0fbbec2a0a503fa173a973b898 (patch)
tree18631dc8b10382e2eddb633d7fbcd03f3c87dbd1 /include/tests_accounting
parent94ba30e765d02ce638e01d731882f8b7086506e2 (diff)
Code style improvement: quote argument
Diffstat (limited to 'include/tests_accounting')
-rw-r--r--include/tests_accounting24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/tests_accounting b/include/tests_accounting
index 93cd2162..4d05f4d6 100644
--- a/include/tests_accounting
+++ b/include/tests_accounting
@@ -42,7 +42,7 @@
Display --indent 2 --text "- Checking accounting information" --result "${STATUS_NOT_FOUND}" --color YELLOW
LogText "Result: No accounting information available"
LogText "Remark: Possibly there is another location where the accounting data is stored"
- ReportSuggestion ${TEST_NO} "Enable process accounting"
+ ReportSuggestion "${TEST_NO}" "Enable process accounting"
AddHP 2 3
fi
fi
@@ -61,7 +61,7 @@
Display --indent 2 --text "- Checking accounting information" --result "${STATUS_NOT_FOUND}" --color YELLOW
LogText "Result: No accounting information available"
LogText "Remark: Possibly there is another location where the accounting data is stored"
- ReportSuggestion ${TEST_NO} "Enable process accounting"
+ ReportSuggestion "${TEST_NO}" "Enable process accounting"
AddHP 2 3
fi
fi
@@ -90,7 +90,7 @@
Display --indent 2 --text "- Checking accounting information" --result "${STATUS_NOT_FOUND}" --color YELLOW
LogText "Result: No accounting information available (${ROOTDIR}var/account/pacct, ${ROOTDIR}var/log/account/pact nor ${ROOTDIR}var/log/pact exist)"
LogText "Remark: Possibly there is another location where the accounting data is stored"
- ReportSuggestion ${TEST_NO} "Enable process accounting"
+ ReportSuggestion "${TEST_NO}" "Enable process accounting"
AddHP 2 3
fi
fi
@@ -111,7 +111,7 @@
else
LogText "Result: sysstat disabled via ${ROOTDIR}etc/default/sysstat"
Display --indent 2 --text "- Checking sysstat accounting data" --result "${STATUS_DISABLED}" --color WHITE
- ReportSuggestion ${TEST_NO} "Enable sysstat to collect accounting (disabled)"
+ ReportSuggestion "${TEST_NO}" "Enable sysstat to collect accounting (disabled)"
fi
elif [ -f ${ROOTDIR}etc/cron.d/sysstat ]; then
FIND=$(${GREPBINARY} -v '^[[:space:]]*\(#\|$\)' ${ROOTDIR}etc/cron.d/sysstat)
@@ -121,12 +121,12 @@
else
LogText "Result: sysstat disabled via ${ROOTDIR}etc/cron.d/sysstat"
Display --indent 2 --text "- Checking sysstat accounting data" --result "${STATUS_DISABLED}" --color WHITE
- ReportSuggestion ${TEST_NO} "Enable sysstat to collect accounting (cron disabled)"
+ ReportSuggestion "${TEST_NO}" "Enable sysstat to collect accounting (cron disabled)"
fi
else
LogText "Result: sysstat not found via ${ROOTDIR}etc/default/sysstat or ${ROOTDIR}etc/cron.d/sysstat"
Display --indent 2 --text "- Checking sysstat accounting data" --result "${STATUS_NOT_FOUND}" --color YELLOW
- ReportSuggestion ${TEST_NO} "Enable sysstat to collect accounting (no results)"
+ ReportSuggestion "${TEST_NO}" "Enable sysstat to collect accounting (no results)"
fi
fi
#
@@ -151,7 +151,7 @@
LogText "Result: auditd not active"
Display --indent 2 --text "- Checking auditd" --result "${STATUS_NOT_FOUND}" --color WHITE
if [ ! "${VMTYPE}" = "openvz" ]; then
- ReportSuggestion ${TEST_NO} "Enable auditd to collect audit information"
+ ReportSuggestion "${TEST_NO}" "Enable auditd to collect audit information"
fi
AddHP 0 1
Report "linux_auditd_running=0"
@@ -171,7 +171,7 @@
LogText "Result: auditd rules empty"
Display --indent 4 --text "- Checking audit rules" --result "${STATUS_SUGGESTION}" --color YELLOW
AddHP 0 2
- ReportSuggestion ${TEST_NO} "Audit daemon is enabled with an empty ruleset. Disable the daemon or define rules"
+ ReportSuggestion "${TEST_NO}" "Audit daemon is enabled with an empty ruleset. Disable the daemon or define rules"
else
LogText "Result: found auditd rules"
Display --indent 4 --text "- Checking audit rules" --result "${STATUS_OK}" --color GREEN
@@ -206,7 +206,7 @@
else
LogText "Result: could not find auditd configuration file"
Display --indent 4 --text "- Checking audit configuration file" --result "${STATUS_FOUND}" --color RED
- ReportSuggestion ${TEST_NO} "Determine the location of auditd configuration file"
+ ReportSuggestion "${TEST_NO}" "Determine the location of auditd configuration file"
fi
fi
#
@@ -229,12 +229,12 @@
else
LogText "Result: can't find log file ${FIND} on disk"
Display --indent 4 --text "- Checking auditd log file" --result "${STATUS_SUGGESTION}" --color YELLOW
- ReportSuggestion ${TEST_NO} "Check auditd log file location"
+ ReportSuggestion "${TEST_NO}" "Check auditd log file location"
fi
else
LogText "Result: no log file found"
Display --indent 4 --text "- Checking auditd log file" --result "${STATUS_WARNING}" --color RED
- ReportWarning ${TEST_NO} "Auditd log file is defined but can not be found on disk"
+ ReportWarning "${TEST_NO}" "Auditd log file is defined but can not be found on disk"
fi
fi
#
@@ -258,7 +258,7 @@
Report "audit_trail_tool[]=snoopy"
else
Display --indent 6 --text "- Library in ld.so.preload" --result "${STATUS_NOT_FOUND}" --color YELLOW
- ReportSuggestion ${TEST_NO} "Snoopy is installed but not loaded via ${ROOTDIR}etc/ld.so.preload"
+ ReportSuggestion "${TEST_NO}" "Snoopy is installed but not loaded via ${ROOTDIR}etc/ld.so.preload"
AddHP 3 3
fi
else