mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 11:25:20 +00:00
seccomp: mshv: Allow create partition ioctl
Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
parent
43935c3b95
commit
a18b08c682
@ -164,6 +164,7 @@ mod mshv {
|
|||||||
pub const MSHV_SET_PARTITION_PROPERTY: u64 = 0x4010_b80c;
|
pub const MSHV_SET_PARTITION_PROPERTY: u64 = 0x4010_b80c;
|
||||||
pub const MSHV_GET_GPA_ACCESS_STATES: u64 = 0xc01c_b812;
|
pub const MSHV_GET_GPA_ACCESS_STATES: u64 = 0xc01c_b812;
|
||||||
pub const MSHV_VP_TRANSLATE_GVA: u64 = 0xc020_b80e;
|
pub const MSHV_VP_TRANSLATE_GVA: u64 = 0xc020_b80e;
|
||||||
|
pub const MSHV_CREATE_PARTITION: u64 = 0x4030_b801;
|
||||||
}
|
}
|
||||||
#[cfg(feature = "mshv")]
|
#[cfg(feature = "mshv")]
|
||||||
use mshv::*;
|
use mshv::*;
|
||||||
@ -192,6 +193,7 @@ fn create_vmm_ioctl_seccomp_rule_common_mshv() -> Result<Vec<SeccompRule>, Backe
|
|||||||
)?],
|
)?],
|
||||||
and![Cond::new(1, ArgLen::Dword, Eq, MSHV_GET_GPA_ACCESS_STATES)?],
|
and![Cond::new(1, ArgLen::Dword, Eq, MSHV_GET_GPA_ACCESS_STATES)?],
|
||||||
and![Cond::new(1, ArgLen::Dword, Eq, MSHV_VP_TRANSLATE_GVA)?],
|
and![Cond::new(1, ArgLen::Dword, Eq, MSHV_VP_TRANSLATE_GVA)?],
|
||||||
|
and![Cond::new(1, ArgLen::Dword, Eq, MSHV_CREATE_PARTITION)?],
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user