nixos/tests/incus: add AppArmor test
This commit is contained in:
parent
f4fd5a51b5
commit
f6128c6050
@ -46,4 +46,10 @@ in
|
||||
inherit lts pkgs system;
|
||||
storageZfs = true;
|
||||
};
|
||||
|
||||
appArmor = incusTest {
|
||||
inherit lts pkgs system;
|
||||
appArmor = true;
|
||||
allTests = true;
|
||||
};
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user