From: Zack Cerza Date: Wed, 5 Aug 2015 22:11:16 +0000 (-0600) Subject: Rotate audit logs before checking denials X-Git-Tag: 1.1.0~851^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9b48927a43312bb6bb7f379161b6d558d3a57526;p=teuthology.git Rotate audit logs before checking denials Signed-off-by: Zack Cerza --- 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