mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-15 14:43:51 +00:00
kata-types: adjust initdata with runtime.cc_init_data
Debug cc_init_data Signed-off-by: Alex Lyn <alex.lyn@antgroup.com>
This commit is contained in:
parent
873df29b3f
commit
aa973f8b59
@ -23,7 +23,7 @@
|
|||||||
//! hypervisors, so let's contain it...
|
//! hypervisors, so let's contain it...
|
||||||
|
|
||||||
use super::{default, ConfigOps, ConfigPlugin, TomlConfig};
|
use super::{default, ConfigOps, ConfigPlugin, TomlConfig};
|
||||||
use crate::annotations::KATA_ANNO_CFG_HYPERVISOR_PREFIX;
|
use crate::annotations::{KATA_ANNO_CFG_HYPERVISOR_PREFIX, KATA_ANNO_CFG_RUNTIME_INIT_DATA};
|
||||||
use crate::{eother, resolve_path, sl, validate_path};
|
use crate::{eother, resolve_path, sl, validate_path};
|
||||||
use byte_unit::{Byte, Unit};
|
use byte_unit::{Byte, Unit};
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
@ -956,6 +956,10 @@ impl SecurityInfo {
|
|||||||
|
|
||||||
/// Check whether annotation key is enabled or not.
|
/// Check whether annotation key is enabled or not.
|
||||||
pub fn is_annotation_enabled(&self, path: &str) -> bool {
|
pub fn is_annotation_enabled(&self, path: &str) -> bool {
|
||||||
|
if matches!(path, KATA_ANNO_CFG_RUNTIME_INIT_DATA) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if !path.starts_with(KATA_ANNO_CFG_HYPERVISOR_PREFIX) {
|
if !path.starts_with(KATA_ANNO_CFG_HYPERVISOR_PREFIX) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user