Skip to content

Commit

Permalink
Merge 149c2cd into 8677c33
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski committed Jun 1, 2023
2 parents 8677c33 + 149c2cd commit 1142f93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ keywords = ["security", "seccomp", "syscall"]
categories = ["os::linux-apis"]

[dependencies]
libseccomp = "^0.2"
libseccomp = "^0.3"
libc = "^0.2"
thiserror = "^1"
syscalls = "^0.5"
syscalls = "^0.6"

[dev-dependencies]
bytes = "^1"
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ impl SafetyContext {
ctx.set_filter_attr(ScmpFilterAttr::CtlTsync, 0)?;
}

ctx.add_arch(ScmpArch::Native)?;
// We don't have to care if the architecture was already added.
// And since this is a new `ScmpFilterContext()`, it should not even be possible.
let _: bool = ctx.add_arch(ScmpArch::Native)?;

self = self.enable(builtins::BasicCapabilities)?;
for LabeledRule(_origin, rule) in self.rules.into_values().flatten() {
Expand Down

0 comments on commit 1142f93

Please sign in to comment.