From 3c3bb2d0db067a69574d3bcfbd732c197e9c3d56 Mon Sep 17 00:00:00 2001
From: mboelen <michael@cisofy.com>
Date: Tue, 26 May 2015 11:11:42 +0200
Subject: [PATCH] Do not show auditd suggestion for OpenVZ systems

---
 include/tests_accounting | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/tests_accounting b/include/tests_accounting
index 2b5e5048..d32f4b33 100644
--- a/include/tests_accounting
+++ b/include/tests_accounting
@@ -126,7 +126,9 @@
           else
             logtext "Result: auditd not active"
             Display --indent 2 --text "- Checking auditd" --result "NOT FOUND" --color WHITE
-            ReportSuggestion ${TEST_NO} "Enable auditd to collect audit information"
+            if [ ! "${VMTYPE}" = "openvz" ]; then
+                ReportSuggestion ${TEST_NO} "Enable auditd to collect audit information"
+            fi
             AUDITD_RUNNING=0
             report "audit_daemon_running=0"
             AddHP 0 1
@@ -427,4 +429,4 @@ wait_for_keypress
 
 #
 #================================================================================
-# Lynis - Copyright 2007-2015, Michael Boelen - http://cisofy.com - The Netherlands
+# Lynis - Copyright 2007-2015, Michael Boelen / CISOfy - https://cisofy.com