Skip to content

Commit

Permalink
Merge pull request #18445 from feri/poo152679
Browse files Browse the repository at this point in the history
Fix for POO#152679
  • Loading branch information
paolostivanin authored Jan 12, 2024
2 parents 06c0b3c + 0d61c90 commit cc4a10d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/selinuxtest.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SUSE's openQA tests
#
# Copyright 2020-2022 SUSE LLC
# Copyright 2020-2024 SUSE LLC
# SPDX-License-Identifier: FSFAP
#
# Summary: Base module for SELinux test cases
Expand All @@ -13,7 +13,7 @@ use warnings;
use testapi;
use serial_terminal 'select_serial_terminal';
use utils;
use version_utils qw(is_alp);
use version_utils qw(is_alp is_sle_micro);
use Utils::Backends 'is_pvm';
use bootloader_setup qw(add_grub_cmdline_settings replace_grub_cmdline_settings);
use power_action_utils 'power_action';
Expand All @@ -29,7 +29,7 @@ our @EXPORT = qw(

our $file_contexts_local;
# On ALP we want to use the default selinux targeted policy and do not have minimum installed which this checks
if (is_alp) {
if (is_alp || is_sle_micro('>=6.0')) {
$file_contexts_local = '/etc/selinux/targeted/contexts/files/file_contexts.local';
} else {
$file_contexts_local = '/etc/selinux/minimum/contexts/files/file_contexts.local';
Expand Down

0 comments on commit cc4a10d

Please sign in to comment.