Skip to content

Commit

Permalink
Merge a86eadb into 72d2e88
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski committed Jun 1, 2023
2 parents 72d2e88 + a86eadb commit a578bf0
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,9 +10,9 @@ keywords = ["security", "seccomp", "syscall"]
categories = ["os::linux-apis"]

[dependencies]
libseccomp = "^0.2"
libseccomp = "^0.3"
libc = "^0.2"
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 @@ -219,7 +219,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 a578bf0

Please sign in to comment.