We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bccb658 commit a02fc1eCopy full SHA for a02fc1e
1 file changed
src/seccompiler/src/lib.rs
@@ -1,7 +1,7 @@
1
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
// SPDX-License-Identifier: Apache-2.0
3
4
-use std::collections::HashMap;
+use std::collections::BTreeMap;
5
use std::fs::File;
6
use std::io::{Read, Seek};
7
use std::os::fd::{AsRawFd, FromRawFd};
@@ -91,7 +91,7 @@ pub fn compile_bpf(
91
// SAFETY: Safe because the parameters are valid.
92
let mut memfd = unsafe { File::from_raw_fd(memfd_fd) };
93
94
- let mut bpf_map: HashMap<String, Vec<u64>> = HashMap::new();
+ let mut bpf_map: BTreeMap<String, Vec<u64>> = BTreeMap::new();
95
for (name, filter) in bpf_map_json.0.iter() {
96
let default_action = filter.default_action.to_scmp_type();
97
let filter_action = filter.filter_action.to_scmp_type();
0 commit comments