From aa1a730af5726d4d28501df709b0c8b4704a5f61 Mon Sep 17 00:00:00 2001
From: Emanuele Aina <emanuele.aina@collabora.com>
Date: Mon, 9 Sep 2019 00:50:11 +0200
Subject: [PATCH] apparmor-functional-demo: Stop truncating audit.log

Since version 0.4+20150326.3, `apparmor-demo` no longer uses `audit.log` but
relies exclusively on the system journal to check for audit messages.

For this reason, truncating `audit.log` before running the test is no longer
useful, and it is still actually harmful on the images that don't ship auditd
like the minimal ones (other image types may follow).

Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
---
 test-cases/apparmor-functional-demo.yaml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/test-cases/apparmor-functional-demo.yaml b/test-cases/apparmor-functional-demo.yaml
index 9a9ff4a..8541c44 100644
--- a/test-cases/apparmor-functional-demo.yaml
+++ b/test-cases/apparmor-functional-demo.yaml
@@ -42,7 +42,6 @@ run:
     - "# Enter test directory:"
     - cd apertis-tests
     - "# Execute the following commands:"
-    - echo -n | sudo tee /var/log/audit/audit.log
     - common/run-test-in-systemd --name=run-lava_run_tests --timeout=90 /usr/lib/apparmor-demo/lava_run_tests
     - sudo journalctl -b -t audit -o cat | /usr/bin/aa_log_extract_tokens.sh ALLOWED DENIED
 
-- 
GitLab