From 5a3af30e6a214508d862a92333a85c83e9657d87 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Mon, 27 Mar 2023 17:44:01 +0200 Subject: [PATCH] seccomp: Add filter entry for MSHV_VP_REGISTER_INTERCEPT_RESULT Signed-off-by: Anatol Belski --- vmm/src/seccomp_filters.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vmm/src/seccomp_filters.rs b/vmm/src/seccomp_filters.rs index c48a68fd4..e0e77939f 100644 --- a/vmm/src/seccomp_filters.rs +++ b/vmm/src/seccomp_filters.rs @@ -168,6 +168,7 @@ mod mshv { pub const MSHV_GET_GPA_ACCESS_STATES: u64 = 0xc01c_b812; pub const MSHV_VP_TRANSLATE_GVA: u64 = 0xc020_b80e; pub const MSHV_CREATE_PARTITION: u64 = 0x4030_b801; + pub const MSHV_VP_REGISTER_INTERCEPT_RESULT: u64 = 0x4030_b817; } #[cfg(feature = "mshv")] use mshv::*; @@ -197,6 +198,12 @@ fn create_vmm_ioctl_seccomp_rule_common_mshv() -> Result, Backe 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_CREATE_PARTITION)?], + and![Cond::new( + 1, + ArgLen::Dword, + Eq, + MSHV_VP_REGISTER_INTERCEPT_RESULT + )?], ]) }