opensnitch: 1.6.9 -> 1.7.0.0 by LordGrimmauld · Pull Request #412616 · NixOS/nixpkgs (original) (raw)
Diff: evilsocket/opensnitch@refs/tags/v1.6.9...refs/tags/v1.7.0.0
Supersedes #412554
No Qt6 yet, see evilsocket/opensnitch#1009
Things done
- Built on platform(s)
- x86_64-linux
- aarch64-linux
- x86_64-darwin
- aarch64-darwin
- For non-Linux: Is sandboxing enabled in
nix.conf? (See Nix manual)sandbox = relaxedsandbox = true
- Tested, as applicable:
- NixOS test(s) (look inside nixos/tests)
- and/or package tests
- or, for functions and "core" functionality, tests in lib/tests or pkgs/test
- made sure NixOS tests are linked to the relevant packages
- Tested compilation of all packages that depend on this change using
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage - Tested basic functionality of all binary files (usually in
./result/bin/) - Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
- (Package updates) Added a release notes entry if the change is major or breaking
- NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
- (Module updates) Added a release notes entry if the change is significant
- (Module addition) Added a release notes entry if adding a new NixOS module
- Fits CONTRIBUTING.md.
Add a 👍 reaction to pull requests you find important.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 412616
Commit: 1d59d1417d573b028a835fb22f559ff3814d3e76
x86_64-linux
✅ 25 packages built:
- linuxKernel.packages.linux_5_10.opensnitch-ebpf
- linuxPackages_5_10_hardened.opensnitch-ebpf (linuxKernel.packages.linux_5_10_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_5_15.opensnitch-ebpf
- linuxPackages_5_15_hardened.opensnitch-ebpf (linuxKernel.packages.linux_5_15_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_1.opensnitch-ebpf
- linuxPackages.opensnitch-ebpf (linuxKernel.packages.linux_6_12.opensnitch-ebpf)
- linuxPackages_hardened.opensnitch-ebpf (linuxPackages_6_12_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_13.opensnitch-ebpf
- linuxPackages_6_13_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_13_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_14.opensnitch-ebpf
- linuxPackages_6_14_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_14_hardened.opensnitch-ebpf)
- linuxPackages_latest.opensnitch-ebpf (linuxKernel.packages.linux_6_15.opensnitch-ebpf)
- linuxPackages_6_1_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_1_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_6.opensnitch-ebpf
- linuxPackages_6_6_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_6_hardened.opensnitch-ebpf)
- linuxPackages_ham.opensnitch-ebpf (linuxKernel.packages.linux_ham.opensnitch-ebpf)
- linuxPackages_latest-libre.opensnitch-ebpf (linuxKernel.packages.linux_latest_libre.opensnitch-ebpf)
- linuxPackages-libre.opensnitch-ebpf (linuxKernel.packages.linux_libre.opensnitch-ebpf)
- linuxPackages_lqx.opensnitch-ebpf (linuxKernel.packages.linux_lqx.opensnitch-ebpf)
- linuxPackages_xanmod.opensnitch-ebpf (linuxKernel.packages.linux_xanmod.opensnitch-ebpf)
- linuxPackages_xanmod_latest.opensnitch-ebpf (linuxKernel.packages.linux_xanmod_latest.opensnitch-ebpf, linuxPackages_xanmod_stable.opensnitch-ebpf)
- linuxPackages_zen.opensnitch-ebpf (linuxKernel.packages.linux_zen.opensnitch-ebpf)
- opensnitch
- opensnitch-ui
- opensnitch-ui.dist
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 412616
x86_64-linux
✅ 25 packages built:
- linuxKernel.packages.linux_5_10.opensnitch-ebpf
- linuxPackages_5_10_hardened.opensnitch-ebpf (linuxKernel.packages.linux_5_10_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_5_15.opensnitch-ebpf
- linuxPackages_5_15_hardened.opensnitch-ebpf (linuxKernel.packages.linux_5_15_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_1.opensnitch-ebpf
- linuxPackages.opensnitch-ebpf (linuxKernel.packages.linux_6_12.opensnitch-ebpf)
- linuxPackages_hardened.opensnitch-ebpf (linuxPackages_6_12_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_13.opensnitch-ebpf
- linuxPackages_6_13_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_13_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_14.opensnitch-ebpf
- linuxPackages_6_14_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_14_hardened.opensnitch-ebpf)
- linuxPackages_latest.opensnitch-ebpf (linuxKernel.packages.linux_6_15.opensnitch-ebpf)
- linuxPackages_6_1_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_1_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_6.opensnitch-ebpf
- linuxPackages_6_6_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_6_hardened.opensnitch-ebpf)
- linuxPackages_ham.opensnitch-ebpf (linuxKernel.packages.linux_ham.opensnitch-ebpf)
- linuxPackages_latest-libre.opensnitch-ebpf (linuxKernel.packages.linux_latest_libre.opensnitch-ebpf)
- linuxPackages-libre.opensnitch-ebpf (linuxKernel.packages.linux_libre.opensnitch-ebpf)
- linuxPackages_lqx.opensnitch-ebpf (linuxKernel.packages.linux_lqx.opensnitch-ebpf)
- linuxPackages_xanmod.opensnitch-ebpf (linuxKernel.packages.linux_xanmod.opensnitch-ebpf)
- linuxPackages_xanmod_latest.opensnitch-ebpf (linuxKernel.packages.linux_xanmod_latest.opensnitch-ebpf, linuxPackages_xanmod_stable.opensnitch-ebpf)
- linuxPackages_zen.opensnitch-ebpf (linuxKernel.packages.linux_zen.opensnitch-ebpf)
- opensnitch
- opensnitch-ui
- opensnitch-ui.dist
Test fails for me:
vm-test-run-opensnitch> client_allowed_ebpf # curl: (28) Failed to connect to server port 80 after 132854 ms: Could not connect to server
vm-test-run-opensnitch> client_allowed_ebpf: output:
vm-test-run-opensnitch> !!! Traceback (most recent call last):
vm-test-run-opensnitch> !!! File "<string>", line 8, in <module>
vm-test-run-opensnitch> !!! client_allowed_ebpf.succeed("curl http://server")
vm-test-run-opensnitch> !!!
vm-test-run-opensnitch> !!! RequestedAssertionFailed: command `curl http://server` failed (exit code 28)
onny marked this pull request as draft
huh, alright, that is surprising... Upstream changed some libs, but most of those just go stuff covered by the vendor hash part. I'll have to rerun build and VM test and closely monitor what it complains about. I had it running on my own machine (outside VM test) and that seemed to work, but maybe i missed something...
Okay, i finally got around to taking a look now. It seems audit backend complaisn about auditctl not being a valid command (likely needs to enable audit in the opensnitch module if os is set to audit), ebpf complains about kernel version. Investigating, hopefully i will be able to fix it.
it worked on my system because i run audit backend and explicitly had audit enabled elsewhere in my config...
Okay, what? I am now very confused. It seems the ebpf test is just super flaky? after it failed, i increased the logging level - and suddenly it succeeds?? it failed after all, just took longer...
Okay, i bisected upstream. evilsocket/opensnitch@ffb7668 is the commit that broke it - but i don't yet understand why. After all, in theory the module should support the module path stuff.
Hmm... that might have been fixed in evilsocket/opensnitch@159494d again... Kinda hard to bisect something that is not just broken and works, but has multiple versions of broke and working, not necessarily attached...
@onny help would be appreciated. I am not sure how to best test this further...
Okay, some extra findings documented in evilsocket/opensnitch#1356.
I did try to limit the source of the error as much as i could, but now i am a bit lost.
No wonder this "worked" on my system!
huh, alright, that is surprising... Upstream changed some libs, but most of those just go stuff covered by the vendor hash part. I'll have to rerun build and VM test and closely monitor what it complains about. I had it running on my own machine (outside VM test) and that seemed to work, but maybe i missed something...
While my rules apply to absolute paths, most stuff not started from a console already executes the absolute path, and for most other things i probably reflexively it "allow"...
Tests do pass now, though this is still a bug that i found.
Upstream fixed the regression, this should be good now. Tests pass for real now!
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 412616
Commit: 65af72507c50b8537968324e038aab3e706ac3f7
aarch64-linux
✅ 21 packages built:
- linuxKernel.packages.linux_5_10.opensnitch-ebpf
- linuxPackages_5_10_hardened.opensnitch-ebpf (linuxKernel.packages.linux_5_10_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_5_15.opensnitch-ebpf
- linuxPackages_5_15_hardened.opensnitch-ebpf (linuxKernel.packages.linux_5_15_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_1.opensnitch-ebpf
- linuxPackages.opensnitch-ebpf (linuxKernel.packages.linux_6_12.opensnitch-ebpf)
- linuxPackages_hardened.opensnitch-ebpf (linuxPackages_6_12_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_13.opensnitch-ebpf
- linuxPackages_6_13_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_13_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_14.opensnitch-ebpf
- linuxPackages_6_14_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_14_hardened.opensnitch-ebpf)
- linuxPackages_latest.opensnitch-ebpf (linuxKernel.packages.linux_6_15.opensnitch-ebpf)
- linuxPackages_6_1_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_1_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_6.opensnitch-ebpf
- linuxPackages_6_6_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_6_hardened.opensnitch-ebpf)
- linuxPackages_ham.opensnitch-ebpf (linuxKernel.packages.linux_ham.opensnitch-ebpf)
- linuxPackages_latest-libre.opensnitch-ebpf (linuxKernel.packages.linux_latest_libre.opensnitch-ebpf)
- linuxPackages-libre.opensnitch-ebpf (linuxKernel.packages.linux_libre.opensnitch-ebpf)
- opensnitch
- opensnitch-ui
- opensnitch-ui.dist
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging within the next hour, unless there are any objections
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 412616
Commit: 65af72507c50b8537968324e038aab3e706ac3f7
aarch64-linux
✅ 21 packages built:
- linuxKernel.packages.linux_5_10.opensnitch-ebpf
- linuxPackages_5_10_hardened.opensnitch-ebpf (linuxKernel.packages.linux_5_10_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_5_15.opensnitch-ebpf
- linuxPackages_5_15_hardened.opensnitch-ebpf (linuxKernel.packages.linux_5_15_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_1.opensnitch-ebpf
- linuxPackages.opensnitch-ebpf (linuxKernel.packages.linux_6_12.opensnitch-ebpf)
- linuxPackages_hardened.opensnitch-ebpf (linuxPackages_6_12_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_13.opensnitch-ebpf
- linuxPackages_6_13_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_13_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_14.opensnitch-ebpf
- linuxPackages_6_14_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_14_hardened.opensnitch-ebpf)
- linuxPackages_latest.opensnitch-ebpf (linuxKernel.packages.linux_6_15.opensnitch-ebpf)
- linuxPackages_6_1_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_1_hardened.opensnitch-ebpf)
- linuxKernel.packages.linux_6_6.opensnitch-ebpf
- linuxPackages_6_6_hardened.opensnitch-ebpf (linuxKernel.packages.linux_6_6_hardened.opensnitch-ebpf)
- linuxPackages_ham.opensnitch-ebpf (linuxKernel.packages.linux_ham.opensnitch-ebpf)
- linuxPackages_latest-libre.opensnitch-ebpf (linuxKernel.packages.linux_latest_libre.opensnitch-ebpf)
- linuxPackages-libre.opensnitch-ebpf (linuxKernel.packages.linux_libre.opensnitch-ebpf)
- opensnitch
- opensnitch-ui
- opensnitch-ui.dist
Backport failed for release-25.05, because it was unable to cherry-pick the commit(s).
Please cherry-pick the changes locally and resolve any conflicts.
git fetch origin release-25.05 git worktree add -d .worktree/backport-412616-to-release-25.05 origin/release-25.05 cd .worktree/backport-412616-to-release-25.05 git switch --create backport-412616-to-release-25.05 git cherry-pick -x ee9b4c7b70b2076600392a4a400d6caad41bf219 65af72507c50b8537968324e038aab3e706ac3f7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})