virtio-devices: seccomp: Add seccomp filters for balloon thread

This patch enables the seccomp filters for the balloon worker thread.

Partially fixes: #925

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen
2020-08-17 19:58:13 -07:00
committed by Sebastien Boeuf
parent c460178723
commit c82ded8afa
3 changed files with 36 additions and 2 deletions

View File

@@ -2452,6 +2452,7 @@ impl DeviceManager {
virtio_devices::Balloon::new(
id.clone(),
self.config.lock().unwrap().memory.balloon_size,
self.seccomp_action.clone(),
)
.map_err(DeviceManagerError::CreateVirtioBalloon)?,
));