Project

General

Profile

Actions

action #175419

open

[MinimalVM] Prepare for switch to SELinux as default MAC in Tumbleweed

Added by ph03nix 19 days ago. Updated 1 day ago.

Status:
Workable
Priority:
High
Assignee:
Target version:
-
Start date:
2025-01-14
Due date:
% Done:

50%

Estimated time:

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.

Actions #2

Updated by ph03nix 12 days ago

We need to create a new scenario that disables SELinux, installs AppArmor and then tests AppArmor.

Actions #3

Updated by ph03nix 12 days ago

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.

Actions #4

Updated by ph03nix 11 days ago

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.

Actions #5

Updated by ph03nix 11 days ago

  • Status changed from Workable to In Progress
  • Assignee set to ph03nix
  • % Done changed from 0 to 50

On second look it appears to me that everything is already in place for the switch

There is https://openqa.opensuse.org/tests/overview?distri=opensuse&version=Tumbleweed&build=20250115-SELinux&groupid=1 with https://openqa.opensuse.org/tests/4784081 and with https://openqa.opensuse.org/tests/4780117 that show that this is already working.

Actions #7

Updated by ph03nix 11 days ago

  • Status changed from In Progress to Workable
  • Assignee deleted (ph03nix)
Actions #8

Updated by ph03nix 11 days ago

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.

Actions #9

Updated by rbranco 1 day ago

  • Assignee set to rbranco
Actions

Also available in: Atom PDF