mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: seccomp: implement seccomp filtering for the event-monitor thread
Signed-off-by: Omer Faruk Bayram <omer.faruk@sartura.hr>
This commit is contained in:
committed by
Rob Bradford
parent
02e1c54426
commit
a0c8bf4f9f
@@ -555,8 +555,13 @@ fn start_vmm(toplevel: TopLevel) -> Result<Option<String>, Error> {
|
||||
};
|
||||
|
||||
let monitor = event_monitor::set_monitor(file).map_err(Error::EventMonitorIo)?;
|
||||
vmm::start_event_monitor_thread(monitor, exit_evt.try_clone().unwrap())
|
||||
.map_err(Error::EventMonitorThread)?;
|
||||
vmm::start_event_monitor_thread(
|
||||
monitor,
|
||||
&seccomp_action,
|
||||
hypervisor.hypervisor_type(),
|
||||
exit_evt.try_clone().unwrap(),
|
||||
)
|
||||
.map_err(Error::EventMonitorThread)?;
|
||||
}
|
||||
|
||||
event!("vmm", "starting");
|
||||
|
||||
Reference in New Issue
Block a user