mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-09 12:49:12 +00:00
runtime-rs: sandbox: read selinux_label from OCI spec and pass to preparevm
Extract the selinux_label field from the OCI spec during sandbox setup and forward it to the prepare_vm API so the VMM process receives the appropriate SELinux context label. - sandbox: read selinux_label from OCI spec - prepare_vm: accept and apply selinux_label parameter Signed-off-by: Caspian443 <scrisis843@gmail.com>
This commit is contained in:
@@ -104,6 +104,7 @@ pub trait Hypervisor: std::fmt::Debug + Send + Sync {
|
||||
id: &str,
|
||||
netns: Option<String>,
|
||||
annotations: &HashMap<String, String>,
|
||||
selinux_label: Option<String>,
|
||||
) -> Result<()>;
|
||||
async fn start_vm(&self, timeout: i32) -> Result<()>;
|
||||
async fn stop_vm(&self) -> Result<()>;
|
||||
|
Reference in New Issue
Block a user