tests: Enable landlock in test_console_file

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

View File

@ -4332,6 +4332,10 @@ mod common_parallel {
.args(["--memory", "size=512M"]) .args(["--memory", "size=512M"])
.args(["--kernel", direct_kernel_boot_path().to_str().unwrap()]) .args(["--kernel", direct_kernel_boot_path().to_str().unwrap()])
.args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE]) .args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE])
.args([
"--landlock-rules",
format!("path={:?},flags=rw", console_path.to_str().unwrap()).as_str(),
])
.default_disks() .default_disks()
.default_net() .default_net()
.args([ .args([