From 39a2ca19770ed0432509feecead8c8a1fe8700e2 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Sep 03 2011 11:22:57 +0000 Subject: Add two auditd sanity checks --- diff --git a/tests/p_audit/auditd_logging.sh b/tests/p_audit/auditd_logging.sh new file mode 100755 index 0000000..0207701 --- /dev/null +++ b/tests/p_audit/auditd_logging.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - check if audit log is not empty." + +[[ -s /var/log/audit/audit.log ]] + +t_CheckExitStatus $? diff --git a/tests/p_audit/auditd_running.sh b/tests/p_audit/auditd_running.sh new file mode 100755 index 0000000..649091f --- /dev/null +++ b/tests/p_audit/auditd_running.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - check if auditd is running." + +service auditd status > /dev/null 2>&1 + +t_CheckExitStatus $?