vmm: Introduce landlock cmdline parameter

Users can use this cmdline option to enable/disable Landlock based
sandboxing while running cloud-hypervisor.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
This commit is contained in:
Praveen K Paladugu
2024-02-13 18:47:37 +00:00
committed by Liu Wei
parent c50ea2c708
commit 287dbd4fc9
5 changed files with 22 additions and 0 deletions

View File

@@ -190,6 +190,7 @@ impl RequestHandler for StubApiRequestHandler {
platform: None,
tpm: None,
preserved_fds: None,
landlock_enable: false,
})),
state: VmState::Running,
memory_actual_size: 0,