From 791f2053b0f91c193a8ae684e7734b8c422d8cb5 Mon Sep 17 00:00:00 2001 From: Andrea Manzini Date: Thu, 9 Jan 2025 16:49:23 +0100 Subject: [PATCH] Avoid running setroubleshootd on SLE yet --- tests/security/selinux/setroubleshootd.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/security/selinux/setroubleshootd.pm b/tests/security/selinux/setroubleshootd.pm index db9d506e2657..c3ce69a78684 100644 --- a/tests/security/selinux/setroubleshootd.pm +++ b/tests/security/selinux/setroubleshootd.pm @@ -17,6 +17,7 @@ use warnings; use testapi; use serial_terminal 'select_serial_terminal'; use utils; +use version_utils 'is_sle'; sub ensure_setroubleshootd_cannot_be_directly_run_as_root { # ensure current test is run as root user @@ -45,6 +46,10 @@ sub validate_invocation_via_polkit() { sub run { my ($self) = shift; select_serial_terminal; + if (is_sle) { # bail out on SLE + record_info 'test skipped', 'setroubleshootd is not yet implemented on SLE'; + return; + } # ensure selinux is in enforcing mode validate_script_output 'getenforce', sub { m/Enforcing/ }; # ensure pkg installation