areguera / rpms / cockpit

Forked from rpms/cockpit 4 years ago
Clone

Blame SOURCES/0009-test-Add-allowed-journal-message.patch

2587cc
From 536ca81ea5d5f7b8f7629e7a73c399e562bb2f5f Mon Sep 17 00:00:00 2001
2587cc
From: Dominik Perpeet <dperpeet@redhat.com>
2587cc
Date: Thu, 15 Jun 2017 16:27:34 +0200
2587cc
Subject: [PATCH 09/16] test: Add allowed journal message
2587cc
2587cc
Bug https://bugzilla.redhat.com/show_bug.cgi?id=1461893
2587cc
2587cc
This is a HACK for the journal messages caused by the above bug.
2587cc
It doesn't have any other noticeable impact on Cockpit.
2587cc
2587cc
Original commit:
2587cc
2587cc
b870d04a62231c40ba997794e10ef2d205ac1bf5
2587cc
  test: Add allowed journal message
2587cc
2587cc
Closes #7025
2587cc
Reviewed-by: Stef Walter <stefw@redhat.com>
2587cc
---
2587cc
 test/common/testlib.py | 5 +++++
2587cc
 1 file changed, 5 insertions(+)
2587cc
2587cc
diff --git a/test/common/testlib.py b/test/common/testlib.py
2587cc
index 0be3f24..1594265 100755
2587cc
--- a/test/common/testlib.py
2587cc
+++ b/test/common/testlib.py
2587cc
@@ -616,6 +616,11 @@ class MachineCase(unittest.TestCase):
2587cc
         'Error was encountered while opening journal files:.*',
2587cc
         'Failed to get data: Cannot assign requested address',
2587cc
 
2587cc
+        # HACK https://bugzilla.redhat.com/show_bug.cgi?id=1461893
2587cc
+        # selinux errors while logging in via ssh
2587cc
+        'type=1401 audit(.*): op=security_compute_av reason=bounds scontext=system_u:system_r:sshd_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:svirt_lxc_net_t:s0-s0:c0.c1023 tclass=process perms=transition,sigchld,sigstop,signull,signal,getattr',
2587cc
+        'type=1401 audit(.*): op=security_compute_av reason=bounds scontext=system_u:system_r:sshd_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:svirt_lxc_net_t:s0-s0:c0.c1023 tclass=process perms=transition,sigchld,sigstop,signull,signal,getattr',
2587cc
+
2587cc
         # Various operating systems see this from time to time
2587cc
         "Journal file.*truncated, ignoring file.",
2587cc
     ]
2587cc
-- 
2587cc
2.9.4
2587cc