mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-21 23:41:15 +00:00
virtio-devices: seccomp: Fix typos in the block module
Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
3eeee63189
commit
6a26789222
@ -535,13 +535,14 @@ impl<T: 'static + DiskFile + Send> VirtioDevice for Block<T> {
|
||||
let paused = self.paused.clone();
|
||||
|
||||
// Retrieve seccomp filter for virtio_blk thread
|
||||
let api_seccomp_filter = get_seccomp_filter(&self.seccomp_action, Thread::VirtioBlk)
|
||||
let virtio_blk_seccomp_filter =
|
||||
get_seccomp_filter(&self.seccomp_action, Thread::VirtioBlk)
|
||||
.map_err(ActivateError::CreateSeccompFilter)?;
|
||||
|
||||
thread::Builder::new()
|
||||
.name("virtio_blk".to_string())
|
||||
.spawn(move || {
|
||||
SeccompFilter::apply(api_seccomp_filter)
|
||||
SeccompFilter::apply(virtio_blk_seccomp_filter)
|
||||
.map_err(EpollHelperError::ApplySeccompFilter)?;
|
||||
|
||||
handler.run(paused)
|
||||
|
Loading…
Reference in New Issue
Block a user