action #175419
open
openQA Tests (public) - action #166613: Yast default selected LSM changes from Apparmor to SELinux, existing openQA test fails in first_boot
[MinimalVM] Prepare for switch to SELinux as default MAC in Tumbleweed
Added by ph03nix 25 days ago.
Updated 3 days ago.
Description
A pending change in Tumbleweed is to switch to SELinux as the default MAC security solution. We need to prepare our test run for this change.
We need to create a new scenario that disables SELinux, installs AppArmor and then tests AppArmor.
I need to think of a good way for the test runs. It needs to include a simple variable that allows to set the MAC.
After looking at the Tumbleweed test runs and used variables in openQA I suggest the following to enable MinimalVM and Tumbleweed testing for now and during the transition period for AppArmor and SELinux:
SECURITY_MAC
defines which LSM (Linux Security Module) is expected to be installed on the system. Values are apparmor
or selinux
.
SECURITY_TEST
defines which LSM should be tested. Values are apparmor
or selinux
.
As a first step to ensure the transitioning from AppArmor to SELinux can happen without interruptions, we need to implement those setting in the current test runs.
Also both the jeos-apparmor
and jeos-selinux
test modules need to be adjusted such, that the test modules are capable to switch the system from apparmor to selinux and vice-versa if needed.
- Status changed from Workable to In Progress
- Assignee set to ph03nix
- % Done changed from 0 to 50
- Status changed from In Progress to Workable
- Assignee deleted (
ph03nix)
So what's still missing are the container apparmor tests. They still need to be prepared to switch back to AppArmor when Tumbleweed is going to switch over to SELinux by default. We can use the above test runs as template for doing so, the test modules for switching to AppArmor already exist.
- Status changed from Workable to Blocked
I'm putting this to blocked until I figure out how this can be handled in the whole Tumbleweed job groups.
- Parent task set to #176565
Blocked until there is an agreement on #176565
- Parent task changed from #176565 to #166613
Also available in: Atom
PDF