From bc545f3b649523beaaea5ff89076459de583ca4a Mon Sep 17 00:00:00 2001 From: Praveen K Paladugu Date: Mon, 1 Apr 2024 16:11:19 +0000 Subject: [PATCH] tests: Enable landlock in test_iommu_segments Signed-off-by: Praveen K Paladugu --- tests/integration.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index 2325c773a..458f6da68 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -2813,6 +2813,10 @@ mod common_parallel { "--platform", &format!("num_pci_segments={MAX_NUM_PCI_SEGMENTS},iommu_segments=[1]"), ]) + .args([ + "--landlock-rules", + format!("path={:?},flags=rw", test_disk_path).as_str(), + ]) .default_disks() .capture_output() .default_net(); @@ -5172,7 +5176,14 @@ mod common_parallel { .args(["--memory", "size=512M"]) .args(["--kernel", kernel_path.to_str().unwrap()]) .args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE]) - .args(["--landlock-rules", format!("path={:?},flags=rw", blk_file_path.as_path().to_str().unwrap()).as_str()]) + .args([ + "--landlock-rules", + format!( + "path={:?},flags=rw", + blk_file_path.as_path().to_str().unwrap() + ) + .as_str(), + ]) .default_disks() .default_net() .capture_output()