-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add installation/enable_apparmor module and run it if SELINUX=0
On distros which default to SELinux during installation, provide a way to switch to AppArmor.
- Loading branch information
1 parent
14c713b
commit b8e5356
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright 2025 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
|
||
# Summary: Enable AppArmor during installation | ||
# Maintainer: Fabian Vogt <fvogt@suse.de> | ||
|
||
use strict; | ||
use warnings; | ||
use base 'y2_installbase'; | ||
use testapi; | ||
|
||
sub run { | ||
my ($self) = @_; | ||
my $textmode = check_var('VIDEOMODE', 'text'); | ||
|
||
$self->go_to_security_settings(); | ||
|
||
send_key 'alt-s'; | ||
send_key_until_needlematch 'security-module-apparmor', 'down'; | ||
send_key 'ret' if $textmode; | ||
|
||
send_key $cmd{ok}; | ||
|
||
# Make sure the overview is fully loaded and not being recalculated | ||
wait_still_screen(3); | ||
assert_screen 'installation-settings-overview-loaded'; | ||
} | ||
|
||
1; |