tests: Enable landlock in test_iommu_segments

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
This commit is contained in:
Praveen K Paladugu 2024-04-01 16:11:19 +00:00
parent 69a4cda8ec
commit bc545f3b64

View File

@ -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()