mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Introduce ApplyLandlock trait
Introduce ApplyLandlock trait and add implementations to VmConfig elements with PathBufs. This trait adds config specific rules to landlock ruleset. Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
This commit is contained in:
committed by
Liu Wei
parent
1dd53c3d24
commit
b3e5738b40
@@ -26,6 +26,10 @@ pub enum LandlockError {
|
||||
/// Invalid Landlock access
|
||||
#[error("Invalid Landlock access: {0}")]
|
||||
InvalidLandlockAccess(String),
|
||||
|
||||
/// Invalid Path
|
||||
#[error("Invalid path")]
|
||||
InvalidPath,
|
||||
}
|
||||
|
||||
// https://docs.rs/landlock/latest/landlock/enum.ABI.html for more info on ABI
|
||||
|
||||
Reference in New Issue
Block a user