Skip to content

Commit

Permalink
Update the nftables crate dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuesch committed Jan 24, 2025
1 parent a78de91 commit 6fa867a
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 68 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
toolchain:
- 1.75.0 # MSRV
- 1.76.0 # MSRV
- 1.84.0
runs-on: ubuntu-latest
steps:
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
matrix:
toolchain:
- 1.75.0 # MSRV
- 1.76.0 # MSRV
- 1.84.0
os:
- windows-latest
Expand Down
33 changes: 27 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ getrandom = "0.2"
hickory-resolver = "0.24"
hmac = "0.12"
libc = "0.2"
nftables = "0.5"
nftables = "0.6"
sd-notify = "0.4"
seccompiler = "0.4"
sha3 = "0.10"
Expand Down
4 changes: 4 additions & 0 deletions letmein-seccomp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ pub enum Allow {
Wait,
Rlimit,
Uname,
Pidfd,
}

/// Action to be performed, if a syscall is executed that is not in the allow-list.
Expand Down Expand Up @@ -336,6 +337,9 @@ impl Filter {
Allow::Uname => {
add_sys(&mut map, sys!(SYS_uname));
}
Allow::Pidfd => {
add_sys(&mut map, sys!(SYS_pidfd_open));
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion letmeinfwd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ clap = { workspace = true }
letmein-conf = { workspace = true }
letmein-fwproto = { workspace = true }
libc = { workspace = true }
nftables = { workspace = true }
nftables = { workspace = true, features = [ "tokio" ] }
tokio = { workspace = true, features = [ "rt", "net", "macros", "signal", "sync", "time" ] }

[target.'cfg(any(target_os="linux", target_os="android"))'.dependencies]
Expand Down
Loading

0 comments on commit 6fa867a

Please sign in to comment.