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

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

Partially fixes: #925

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen
2020-08-04 11:27:17 -07:00
committed by Rob Bradford
parent 276df6b71c
commit d77977536d
3 changed files with 48 additions and 2 deletions

View File

@@ -1903,6 +1903,7 @@ impl DeviceManager {
net_cfg.iommu,
net_cfg.num_queues,
net_cfg.queue_size,
self.seccomp_action.clone(),
)
.map_err(DeviceManagerError::CreateVirtioNet)?,
))
@@ -1918,6 +1919,7 @@ impl DeviceManager {
net_cfg.iommu,
net_cfg.num_queues,
net_cfg.queue_size,
self.seccomp_action.clone(),
)
.map_err(DeviceManagerError::CreateVirtioNet)?,
))