]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Rotate audit logs before checking denials
authorZack Cerza <zack@redhat.com>
Wed, 5 Aug 2015 22:11:16 +0000 (16:11 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 5 Aug 2015 22:29:33 +0000 (16:29 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/task/selinux.py

index 39b717d2b79baa7768d521872bdf9a20d75fecc3..f6b13a31d74796cf25234b2dc53e104338009c66 100644 (file)
@@ -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