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-07-26 12:32:48 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-07-26 12:32:48 +0300
commit17137408d29d004e7ec1512ab7e6b7d30ff28ebe (patch)
tree85991b6df7fa8f8d49845b48c43038b049b68121 /include/tests_accounting
parent8321b986891eae1f928434ea9ac0003ae743ab67 (diff)
Use IsRunning exit code instead of variable
Diffstat (limited to 'include/tests_accounting')
-rw-r--r--include/tests_accounting6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/tests_accounting b/include/tests_accounting
index 2b2ceb46..93cd2162 100644
--- a/include/tests_accounting
+++ b/include/tests_accounting
@@ -139,8 +139,7 @@
if [ ${SKIPTEST} -eq 0 ]; then
LogText "Test: Check auditd status"
# Should not get kauditd
- IsRunning auditd
- if [ ${RUNNING} -eq 1 ]; then
+ if IsRunning "auditd"; then
LogText "Result: auditd running"
Display --indent 2 --text "- Checking auditd" --result "${STATUS_ENABLED}" --color GREEN
LINUX_AUDITD_RUNNING=1
@@ -277,8 +276,7 @@
Register --test-no ACCT-9650 --os Solaris --weight L --network NO --category security --description "Check Solaris audit daemon"
if [ ${SKIPTEST} -eq 0 ]; then
LogText "Test: check if audit daemon is running"
- IsRunning auditd
- if [ ${RUNNING} -eq 1 ]; then
+ if IsRunning "auditd"; then
LogText "Result: Solaris audit daemon is running"
SOLARIS_AUDITD_RUNNING=1
AUDIT_DAEMON_RUNNING=1