runtime-rs: reset rdma cgroup

We don't support rdma cgroups yet. Let's make sure it is reset to empty.

Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
Peng Tao 2022-12-12 09:51:21 +00:00
parent 5b6596f54e
commit 62f4603e81

View File

@ -4,6 +4,7 @@
// SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: Apache-2.0
// //
use std::collections::HashMap;
use std::sync::Arc; use std::sync::Arc;
use agent::Agent; use agent::Agent;
@ -393,6 +394,7 @@ fn amend_spec(spec: &mut oci::Spec, disable_guest_seccomp: bool) -> Result<()> {
resource.block_io = None; resource.block_io = None;
resource.hugepage_limits = Vec::new(); resource.hugepage_limits = Vec::new();
resource.network = None; resource.network = None;
resource.rdma = HashMap::new();
} }
// Host pidns path does not make sense in kata. Let's just align it with // Host pidns path does not make sense in kata. Let's just align it with