From 9b48927a43312bb6bb7f379161b6d558d3a57526 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 5 Aug 2015 16:11:16 -0600 Subject: [PATCH] Rotate audit logs before checking denials Signed-off-by: Zack Cerza --- teuthology/task/selinux.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/teuthology/task/selinux.py b/teuthology/task/selinux.py index 39b717d2b7..f6b13a31d7 100644 --- a/teuthology/task/selinux.py +++ b/teuthology/task/selinux.py @@ -44,10 +44,14 @@ class SELinux(Task): def setup(self): super(SELinux, self).setup() + self.rotate_log() self.old_modes = self.get_modes() self.old_denials = self.get_denials() self.set_mode() + def rotate_log(self): + self.cluster.run(args="sudo service auditd rotate") + def get_modes(self): """ Get the current SELinux mode from each host so that we can restore -- 2.39.5