Closed onny closed 5 months ago
Hi @onny ,
Thank you for reporting this error. I think the test itself is not exactly correct. I guess that running it in restricted environments could fail.
Is this the case? where're the tests executed? lxc? docker? etc
yes it is an isolated test environment on nixos without internet access etc. this is my current PR with updating and enhancing the opensnitch module https://github.com/NixOS/nixpkgs/pull/276468/files i could try to git bisect the sources to see which commit introduced the bug or maybe try an earlier go version (< 1.17)
I've changed the test to fail only on parsing the stats or opening the procfs IO stats file /proc/self/io
It'll still fail on environments without procfs mounted. If needed we can add a environment variable to disable these tests on those systems.
Thanks that fixed the issue for me :)
Trying to build the latest commit https://github.com/evilsocket/opensnitch/commit/ffb76683aa804e7052013dbab7132a31239a09dc fails with:
Reference: https://github.com/NixOS/nixpkgs/pull/276468
opensnitchd -check-requirements
is all green