Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/seccompiler/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use std::collections::HashMap;
use std::collections::BTreeMap;
use std::fs::File;
use std::io::{Read, Seek};
use std::os::fd::{AsRawFd, FromRawFd};
Expand Down Expand Up @@ -91,7 +91,7 @@
// SAFETY: Safe because the parameters are valid.
let mut memfd = unsafe { File::from_raw_fd(memfd_fd) };

let mut bpf_map: HashMap<String, Vec<u64>> = HashMap::new();
let mut bpf_map: BTreeMap<String, Vec<u64>> = BTreeMap::new();

Check warning on line 94 in src/seccompiler/src/lib.rs

View check run for this annotation

Codecov / codecov/patch

src/seccompiler/src/lib.rs#L94

Added line #L94 was not covered by tests
for (name, filter) in bpf_map_json.0.iter() {
let default_action = filter.default_action.to_scmp_type();
let filter_action = filter.filter_action.to_scmp_type();
Expand Down