Skip to content

Commit

Permalink
test: Expect rhcd_t SELinux modification on RHEL
Browse files Browse the repository at this point in the history
The most recent RHEL 9.4 cloud images added the "rhc" package. This
currently contains a hack to locally modify the SELinux policy [1], so
we need to ignore this.

At least we can drop the insights_client hack, it was fixed properly in
https://bugzilla.redhat.com/show_bug.cgi?id=2226684

[1] https://issues.redhat.com/browse/RHEL-20352
  • Loading branch information
martinpitt committed Jan 2, 2024
1 parent 5a3c197 commit d4b1155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/verify/check-selinux
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ class TestSelinux(testlib.MachineCase):
b.enter_page("/selinux")
with b.wait_timeout(30):
if m.image.startswith("rhel"):
# insights-client sets itself as permissive on RHEL, and `semanage permissive -D` gets OOM-killed
b.wait_text_matches("ul[aria-label='System modifications']", "No system modifications|permissive -a insights_client_t")
# HACK: rhc sets itself as permissive on RHEL; https://issues.redhat.com/browse/RHEL-20352
b.wait_text_matches("ul[aria-label='System modifications']", "No system modifications|permissive -a rhcd_t")
else:
b.wait_text("ul[aria-label='System modifications']", "No system modifications")
b.relogin("/selinux", "admin", superuser=False)
Expand Down

0 comments on commit d4b1155

Please sign in to comment.