vmm: api: Add seccomp to the HTTP API thread

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-03-20 17:31:15 +01:00
parent db62cb3f4d
commit f1a23d712f
3 changed files with 17 additions and 1 deletions

View File

@@ -105,6 +105,12 @@ pub enum ApiError {
/// The device could not be removed from the VM.
VmRemoveDevice(VmError),
/// Cannot create seccomp filter
CreateSeccompFilter(seccomp::SeccompError),
/// Cannot apply seccomp filter
ApplySeccompFilter(seccomp::Error),
}
pub type ApiResult<T> = std::result::Result<T, ApiError>;