tests: Enable landlock in test_net_hotplug

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

View File

@ -5841,6 +5841,10 @@ mod common_parallel {
.args(["--memory", "size=512M"]) .args(["--memory", "size=512M"])
.args(["--kernel", kernel_path.to_str().unwrap()]) .args(["--kernel", kernel_path.to_str().unwrap()])
.args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE]) .args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE])
.args([
"--landlock-rules",
format!("path={:?},flags=rw", "/dev/net/tun").as_str(),
])
.default_disks() .default_disks()
.capture_output(); .capture_output();