nixos/tests/incus: add AppArmor test

This commit is contained in:
MakiseKurisu 2025-03-03 13:01:14 +08:00
parent f4fd5a51b5
commit f6128c6050
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View File

@ -46,4 +46,10 @@ in
inherit lts pkgs system;
storageZfs = true;
};
appArmor = incusTest {
inherit lts pkgs system;
appArmor = true;
allTests = true;
};
}

View File

@ -7,6 +7,7 @@ import ../make-test-python.nix (
allTests ? false,
appArmor ? false,
featureUser ? allTests,
initLegacy ? true,
initSystemd ? true,
@ -139,6 +140,9 @@ import ../make-test-python.nix (
networking.hostId = "01234567";
networking.firewall.trustedInterfaces = [ "incusbr0" ];
security.apparmor.enable = appArmor;
services.dbus.apparmor = (if appArmor then "enabled" else "disabled");
services.lvm = {
boot.thin.enable = storageLvm;
dmeventd.enable = storageLvm;