From ac318d7e5c3206b7f126e1cac274467205bbcb91 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Jun 13 2015 14:34:02 +0000 Subject: Add a script to generate events for auditd --- diff --git a/tests/p_audit/2_auditd_generate-events.sh b/tests/p_audit/2_auditd_generate-events.sh new file mode 100755 index 0000000..a157cee --- /dev/null +++ b/tests/p_audit/2_auditd_generate-events.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - Generate some events for audit log." + +useradd testauditd +userdel testauditd + +t_CheckExitStatus $? diff --git a/tests/p_audit/2_auditd_logging.sh b/tests/p_audit/2_auditd_logging.sh deleted file mode 100755 index 0207701..0000000 --- a/tests/p_audit/2_auditd_logging.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/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/3_auditd_logging.sh b/tests/p_audit/3_auditd_logging.sh new file mode 100755 index 0000000..0207701 --- /dev/null +++ b/tests/p_audit/3_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 $?