mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-26 15:32:30 +00:00
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:
parent
5b6596f54e
commit
62f4603e81
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user