Skip to content

Commit

Permalink
Avoid running setroubleshootd on SLE yet
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmanzo committed Jan 9, 2025
1 parent 46e5f4c commit 791f205
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/security/selinux/setroubleshootd.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 791f205

Please sign in to comment.